diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 823502eae46a93ee7616ea1125dd5a3399cca56f..107741dac96a8c8f6a3e921c0343dce6e8c51fed 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2574,7 +2574,10 @@ class AccountMove(models.Model): ('date', '<=', fields.Date.today()), ('auto_post', '=', True), ]) - records.post() + for ids in self._cr.split_for_in_conditions(records.ids, size=1000): + self.browse(ids).post() + if not self.env.registry.in_test_mode(): + self._cr.commit() # offer the possibility to duplicate thanks to a button instead of a hidden menu, which is more visible def action_duplicate(self):