2
0

Merge PR #1686 into 16.0

Signed-off-by AaronHForgeFlow
This commit is contained in:
OCA-git-bot 2023-07-05 12:01:35 +00:00
commit d84b408614

View File

@ -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(),