How to create a payment for an invoice from python code in odoo15
Cette question a été signalée
1
Répondre
6889
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
nov. 25
|
3128 | ||
|
|
1
oct. 22
|
12970 | ||
|
|
7
janv. 22
|
21138 | ||
|
Difference Amount in Payment
Résolu
|
|
1
janv. 24
|
16962 | |
|
|
1
oct. 19
|
5183 |
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,
})