How to create a payment for an invoice from python code in odoo15
Tämä kysymys on merkitty
1
Vastaa
7683
Näkymät
Hello Estain Makaudze,
Please find below way to use payment create from invoice in py code,
addons > account > wizard > account_payment_register.py file > method(_create_payments())
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
|
0
huhtik. 26
|
1 | ||
|
|
1
marrask. 25
|
3969 | ||
|
|
1
lokak. 22
|
13783 | ||
|
|
7
tammik. 22
|
22102 | ||
|
Difference Amount in Payment
Ratkaistu
|
|
1
tammik. 24
|
17557 |
Following is a Code Snippet to Archive it.
payment=self.env['account.payment.register'].with_context(active_model='account.move'
active_id=rec.ids).create({
'payment_date': date.today(),
'amount': 120,
'journal_id': 7,
'currency_id': 122,
})