Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4976 Vues

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

Avatar
Ignorer
Auteur

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

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 25
1249
1
oct. 22
11207
7
janv. 22
18586
1
janv. 24
14951
1
oct. 19
3999