[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 <oco@odoo.com>
Signed-off-by: Nicolas Viseur <vin@odoo.com>
This commit is contained in:
Nicolas (vin)
2022-02-23 11:00:48 +00:00
parent e8063c6657
commit 9983fa064a
+1
View File
@@ -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,