Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4321 Vistas

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

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

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 25
661
1
oct 22
10703
7
ene 22
17779
1
ene 24
14370
1
oct 19
3603