[FIX] account: call method with expected singleton recordset
closes odoo/odoo#44877 X-original-commit: 4c5aea410577fab3166d3f05951ac0886406bd24 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
@@ -3444,7 +3444,7 @@ class AccountMoveLine(models.Model):
|
||||
))
|
||||
super(AccountMoveLine, line).write(to_write)
|
||||
elif any(field in vals for field in BUSINESS_FIELDS):
|
||||
to_write = self._get_price_total_and_subtotal()
|
||||
to_write = line._get_price_total_and_subtotal()
|
||||
to_write.update(line._get_fields_onchange_subtotal(
|
||||
price_subtotal=to_write['price_subtotal'],
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user