-
- Downloads
[FIX] account: fix vendor bills tax discard
This commit fixes the object reference issue which was linked to the
TaxTotals Component computations. The issue was that discarding changes
on the tax field of a vendor bill wouldn't roll back the field's value
visually while the record would still have correctly updated values.
This issue originates from the fact that operations were made to compute
the taxes in the component but these would affect the server data as
well since the object reference between the local data and the server
data was the same. This means that the discard operation would bring
the displayed value back to the server data's one which has been
modified by the computations so it would not work. The reference to the
server data is now separated from the local one so that the bug won't
appear anymore.
opw-3285209
closes odoo/odoo#123278
Signed-off-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
Showing
- addons/account/static/src/components/tax_totals/tax_totals.js 1 addition, 1 deletion...ns/account/static/src/components/tax_totals/tax_totals.js
- addons/account/static/tests/tours/tax_group_tests.js 25 additions, 8 deletionsaddons/account/static/tests/tours/tax_group_tests.js
- addons/account/tests/test_tour.py 3 additions, 0 deletionsaddons/account/tests/test_tour.py
Please register or sign in to comment