From ef4bf7c936f3c937127eaf01b2b322c2ada5ec5e Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Wed, 29 Jan 2020 23:02:34 +0000 Subject: [PATCH] [FIX] account: call method with expected singleton recordset closes odoo/odoo#44877 X-original-commit: 4c5aea410577fab3166d3f05951ac0886406bd24 Signed-off-by: oco-odoo --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index fdbf651ac7c..9b521296c0b 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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'], ))