purchase_advance_payment: open payment form after creation

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2026-02-11 11:25:57 +01:00
parent 5222b93391
commit 138bd5ffee

View file

@ -194,6 +194,14 @@ class AccountVoucherWizardPurchase(models.TransientModel):
): ):
payment.action_post() payment.action_post()
return {
"type": "ir.actions.act_window",
"res_model": "account.payment",
"res_id": payment.id,
"view_mode": "form",
"target": "current",
}
return { return {
"type": "ir.actions.act_window_close", "type": "ir.actions.act_window_close",
} }