diff --git a/addons/account/wizard/account_move_reversal.py b/addons/account/wizard/account_move_reversal.py index 63208d6469b..d51de2a7e69 100644 --- a/addons/account/wizard/account_move_reversal.py +++ b/addons/account/wizard/account_move_reversal.py @@ -12,6 +12,7 @@ class AccountMoveReversal(models.TransientModel): move_id = fields.Many2one('account.move', string='Journal Entry', domain=[('state', '=', 'posted'), ('type', 'not in', ('out_refund', 'in_refund'))]) + new_move_ids = fields.Many2many('account.move') date = fields.Date(string='Reversal date', default=fields.Date.context_today, required=True) reason = fields.Char(string='Reason') refund_method = fields.Selection(selection=[ @@ -80,6 +81,8 @@ class AccountMoveReversal(models.TransientModel): else: return + self.new_move_ids = new_moves + # Create action. action = { 'name': _('Reverse Moves'),