[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user