mirror of
https://github.com/bringout/oca-purchase.git
synced 2026-04-20 08:22:08 +02:00
purchase_advance_payment: pre-fill Ref. from purchase partner_ref
🤖 assisted by claude
This commit is contained in:
parent
1a11d6c503
commit
727fd34151
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ class AccountVoucherWizardPurchase(models.TransientModel):
|
||||||
)
|
)
|
||||||
.id
|
.id
|
||||||
)
|
)
|
||||||
|
if purchase.partner_ref:
|
||||||
|
res["payment_ref"] = purchase.partner_ref
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@api.depends("journal_id", "date", "amount_advance", "journal_currency_id")
|
@api.depends("journal_id", "date", "amount_advance", "journal_currency_id")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue