diff options
| author | oco-odoo <oco@odoo.com> | 2021-04-28 09:01:49 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2021-04-28 14:34:59 +0000 |
| commit | 3e07ebf24c671a0686e53b769935a5cd7cc4255c (patch) | |
| tree | 27ca425ed66c152b8724bcf19f3c1e4341840e6e /doc/reference/javascript_reference.rst | |
| parent | 36582d08dee3688ea6e839bccfeaf8877e812122 (diff) | |
[FIX] account: cash basis taxes: generate correct exchange difference when using the same cash basis taxes on multiple lines
To reproduce the bug:
1) Create a cash basis tax for 42%
2) Make an invoice with two lines at 100$, each using this tax
3) Post and register full payment of the invoice
==> An exchange difference has been generated, doing +100 -100. One of its two line has tax_ids set, while the other does not. This makes the base amount shown in the generic tax report wrong: 100 instead of 200.
Actually, this exchange difference entry shouldn't have existed in the first place, as there is no rounding issue to compensate for here. It happens because the grouping keys computed for the two base lines are the same, and the second line overwrites the totals of the first one instead of adding them to its own.
closes odoo/odoo#70034
Related: odoo/enterprise#18019
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
