Skip to content

Conversation

@dreispt
Copy link
Member

@dreispt dreispt commented May 29, 2020

To do:

  • Apply precommit actions
  • Fix OCA lint
  • Refactor docs to OCA README
  • Split account_sale_avatax module

fhe-odoo and others added 30 commits May 29, 2020 08:54
LGPL-3 LICENSE was already included, but it was not yet marked as
LGPL-3 in the manifest.

Closes #3
Older versions of the integration instead reported to Avalara on a
cash basis, but this version does so on an accrual basis.
Although never published on pypi.org Debian Stretch' python3-suds
contains suds-jurko 0.7. It's not backwards-compatible with code
written for suds-jurko 0.6.

Contrary to 0.6, 0.7 respects minOccurs and maxOccurs attributes
which caused empty TaxOccurs elements to be inserted. This in turn
made Avatax return an error.

Additionally, 0.7 no longer maps a WSDL 'decimal' to a Python
float. Instead it maps it to a Python Decimal.

Fixes #6
If the SO is taxed on delivery address, the invoice should be as well.
Since the tax_id field is readonly in certain cases you cannot rely on
the onchanges to handle this. This solves the issue by turning tax_id
into a stored computed field. Note that the various onchanges are
still necessary to manage the booleans (which should have been a
single Selection field).
The standard report uses _get_tax_amount_by_group which relies on
account.tax's compute_all. This module doesn't properly overwrite
compute_all, so Avatax taxes always are displayed as 0.

Solving this by correctly overriding compute_all is not trivial and
the risk of introducing other issues is big. Therefore simply don't
use _get_tax_amount_by_group on the report.
@dreispt dreispt marked this pull request as draft June 18, 2020 11:20
@dreispt dreispt marked this pull request as ready for review July 15, 2020 16:13
@dreispt dreispt closed this Jul 15, 2020
@dreispt dreispt reopened this Jul 15, 2020
@dreispt
Copy link
Member Author

dreispt commented Jul 15, 2020

Hello, this is now passing my sanity checks, and I classified it as Beta, to allow distribution to beta users for tests, and later upgrade to stable status.

It bundles two modules, account_avatax and account_avatax_sale. Historically they were a single module, and it is not easy to separate them in two PR and still keep the commit history.

Copy link

@b-kannan b-kannan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality testing for sales taxes have been done
a. Sales taxes - invoices and refunds
b. Exemptions on Partners
c. Product taxes

@dreispt
Copy link
Member Author

dreispt commented Jul 16, 2020

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 13.0-ocabot-merge-pr-116-by-dreispt-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 567abf0 into OCA:13.0 Jul 16, 2020
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 681f60e. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants