From 97fc813a1a416caffdd3ca3b057dab1974a4f239 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Mon, 26 Mar 2018 14:19:46 +0200 Subject: [PATCH] [FIX] account: fix performance issue with check_lock_date --- 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 ee1aded3938..6fe81fbf202 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1216,7 +1216,7 @@ class AccountMoveLine(models.Model): raise UserError(_('You cannot do this modification on a reconciled entry. You can just change some non legal fields or you must unreconcile first.\n%s.') % err_msg) if line.move_id.id not in move_ids: move_ids.add(line.move_id.id) - self.env['account.move'].browse(list(move_ids))._check_lock_date() + self.env['account.move'].browse(list(move_ids))._check_lock_date() return True ####################################################