diff --git a/account_asset_management/wizard/wiz_asset_move_reverse.py b/account_asset_management/wizard/wiz_asset_move_reverse.py index 7fd420b1..75f03721 100644 --- a/account_asset_management/wizard/wiz_asset_move_reverse.py +++ b/account_asset_management/wizard/wiz_asset_move_reverse.py @@ -40,7 +40,9 @@ class WizAssetMoveReverse(models.TransientModel): move = self.line_id.move_id move_reversal = ( self.env["account.move.reversal"] - .with_context(active_model="account.move", active_ids=move.ids) + .with_context( + active_model="account.move", active_ids=move.ids, active_id=move.id + ) .create( { "date": fields.Date.today(),