[FIX] account: fix performance issue with check_lock_date

This commit is contained in:
Yenthe V.G
2018-03-28 15:02:47 +02:00
committed by De Paoli Quentin
parent 2e3b249723
commit 97fc813a1a
+1 -1
View File
@@ -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
####################################################