[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:
Ernesto Tejeda
2020-02-07 14:29:44 +00:00
parent 4b58342743
commit ef4bf7c936
+1 -1
View File
@@ -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'],
))