From e149bdcd4b6c0707f037c018dbd6aa4596034d60 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Tue, 9 Aug 2022 20:20:35 +0000 Subject: [PATCH] [FIX] account: remove useless attribute start in sum Using named attribute 'start' in sum function is not compatible with python 3.7, it is also set as 'start=0' which is useless as it is the default value of start argument. Part-of: odoo/odoo#97862 --- addons/account/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move_line.py b/addons/account/models/account_move_line.py index baa03aabfe1..bf923701fac 100644 --- a/addons/account/models/account_move_line.py +++ b/addons/account/models/account_move_line.py @@ -572,7 +572,7 @@ class AccountMoveLine(models.Model): line.balance = ( line.balance or line.debit - line.credit - or -sum((line.move_id.line_ids - line).mapped('balance'), start=0) + or -sum((line.move_id.line_ids - line).mapped('balance')) ) else: line.balance = False