Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5042 Vizualizări

How to create a payment for an invoice from python code in odoo15 

Imagine profil
Abandonează
Autor

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,
})

Cel mai bun răspuns

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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 25
1288
1
oct. 22
11229
7
ian. 22
18650
1
ian. 24
14995
1
oct. 19
4023