diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 73948d81b86..1f3ff0cb72b 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -4666,7 +4666,7 @@ class AccountMoveLine(models.Model): [action] = self.env.ref('account.account_automatic_entry_wizard_action').read() # Force the values of the move line in the context to avoid issues ctx = dict(self.env.context) - ctx['active_id'] = self.id + ctx.pop('active_id', None) ctx['active_ids'] = self.ids ctx['active_model'] = 'account.move.line' action['context'] = ctx