How to create a payment for an invoice from python code in odoo15
Această întrebare a fost marcată
1
Răspunde
7688
Vizualizări
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
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
0
apr. 26
|
1 | ||
|
|
1
nov. 25
|
3972 | ||
|
|
1
oct. 22
|
13787 | ||
|
|
7
ian. 22
|
22103 | ||
|
Difference Amount in Payment
Rezolvat
|
|
1
ian. 24
|
17558 |
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,
})