-
-
Notifications
You must be signed in to change notification settings - Fork 203
[13.0][ADD] Contribute Avatax integration #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
|
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, |
b-kannan
left a comment
There was a problem hiding this 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
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 681f60e. Thanks a lot for contributing to OCA. ❤️ |
To do: