summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2020-10-12 14:31:27 +0000
committerLaurent Smet <las@odoo.com>2020-10-15 06:43:33 +0000
commitf2a5476c52c1312d3dfc558f92b4a678d6aa5e25 (patch)
treec0c9c21002917c4cf02baa712ba6f689af9f54ce /addons/web
parent107ac15687befccf59527730cc776d5ad68cac44 (diff)
[FIX] account: Fix price_unit with fiscal position to price included tax
Suppose two price_included taxes: 10%, 20%, a product having a sale price of 110.0 and a fiscal position tax 10% => tax 20%: When onchange_product_id is called, the price_unit is computed as follow: 110 / 1.1 = 100 100 * 1.2 = 120 So price_unit = 120 and balance = 100.0 But in onchange_uom_id, we do the same thing and we call _get_fields_onchange_balance_model with balance=100.0. However, in this method, an empty dictionary is returned because price_subtotal == balance. Then, {}.get('price_unit', price_unit) will return the original price_unit (110.0) instead of the new computed one (120.0). closes odoo/odoo#59888 X-original-commit: 2324599b1d54b5fff1f8baea4ec7455fc0293fcc Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/web')
0 files changed, 0 insertions, 0 deletions