account: force account.invoice.tax recalculation when different currency used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 3 |
Bug Description
Affects all versions.
Requirements :
Any invoice with other currency than company.
Problem description:
In certain circumstances leads to significant differences in tax reports and accounting entries because of currency rate floats between dates in companies with international trade operations.
Steps to reproduce:
Company currency EUR
Currency rates must exist for test dates.
1. Create supplier invoice in USD. (note invoice create date! ), leave in draft state.
2. After 3 days confirm invoice.
Results:
account.invoice.tax values are different from corresponding accounting entries, what is wrong.
Cause:
Difference arise from currency rate changes between invoice creation date and invoice confirmation date or changing invoice date while not recomputing taxes.
account.invoice.tax is not recalculated while changing invoice state (values are calculated from invoice creation date's currency rate), but account.move.lines company currency values are calculated from invoice confirmation date's currency rate (if date not set) or invoice date's currency rate.
Solution:
Invoice write function should perform additional cheks, and if necessary recompute account.invoice.tax according to specific correct date.
Normunds
Alistek ltd
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: invoicing |
Hello Normunds,
"Update" button is already there, So before confirming the invoice you can re-compute the taxes by "Update" button.
So it will re-calculate the taxes.
If you want automatic re-calculation of taxed on validate button, you can call the update taxes method on validate invoice.
Currently I am considering this as a improvement.
Thank you!