Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4825 Zobrazení

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

Avatar
Zrušit
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,
})

Nejlepší odpověď

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
1107
1
říj 22
11090
7
led 22
18307
1
led 24
14830
1
říj 19
3931