mirror of
https://github.com/bringout/oca-purchase.git
synced 2026-04-20 06:22:03 +02:00
purchase_advance_payment: open payment form after creation
🤖 assisted by claude
This commit is contained in:
parent
5222b93391
commit
138bd5ffee
1 changed files with 8 additions and 0 deletions
|
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue