From 9983fa064a360b0417aae3a51478e996576ba68d Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Fri, 28 Jan 2022 16:03:48 +0000 Subject: [PATCH] [FIX] account: call _onchange_price_subtotal on demo data The demo data created by account did not call _onchange_price_subtotal on the created account_lines, making the total debit and credit not matching the state of the lines. closes odoo/odoo#85188 X-original-commit: 403939ea7b460b95cc31993613f5cba5f5fefcfa Related: odoo/enterprise#24651 Signed-off-by: Olivier Colson Signed-off-by: Nicolas Viseur --- addons/account/demo/account_demo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/demo/account_demo.py b/addons/account/demo/account_demo.py index 88b5d626b9f..8cf75751a46 100644 --- a/addons/account/demo/account_demo.py +++ b/addons/account/demo/account_demo.py @@ -318,6 +318,7 @@ class AccountChartTemplate(models.Model): created.line_ids._onchange_product_id() created.line_ids._onchange_account_id() + created.line_ids._onchange_price_subtotal() created._recompute_dynamic_lines( recompute_all_taxes=True,