summaryrefslogtreecommitdiff
path: root/addons/base_setup/data/base_setup_data.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-04-18 11:22:05 +0000
committerNicolas Martinelli <nim@odoo.com>2019-04-18 11:44:41 +0000
commit2785b04586f40c5d0a8135991ee36123f1be8192 (patch)
tree9f12b7a3465d1f77194f3bdd705b0f4e266b80f8 /addons/base_setup/data/base_setup_data.xml
parent39c3abc5fb5310e9df52ffee1a846a47dc30d40e (diff)
[FIX] purchase_stock: tax included in multi-currency
- Set the company currency to USD, activate multi-currency - Create a rate of 0.5 for EUR - Create a purchase tax T: Percentage: 10 % Included in price - Create a PO in EUR with the followind line Quantity: 10.0 Price Unit: 1.0 Tax: T - Validate the PO, receive the product The journal entry is composed of 2 lines: - debit: 18.18; amount currency: 10.0 - credit: 18.18; amount currency: -10.0 This is not correct: the amount currency should not include the tax. In order to prevent this, we use the subtotal, and divide by the normalized quantity (yeah, because it was also failing in case of multi UoM, as one could have expected). opw-1958287 closes odoo/odoo#32797 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/base_setup/data/base_setup_data.xml')
0 files changed, 0 insertions, 0 deletions