Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6291 Vistas

How can I get amount due of a partner using credit and debit?

Avatar
Descartar

In enterprise or community?

Mejor respuesta

Hi,

In the res.partner model by default you have two fields credit and debit which compute the Total Receivable and Payable of the partner. 

Either you can use those fields as such or refer the compute function of those fields. Function name _credit_debit_get in res.partner model.

You  can see it in this path: https://github.com/odoo/odoo/blob/12.0/addons/account/models/partner.py

Thanks

Avatar
Descartar
Autor

Thanks a lot for this info.

Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3753
0
feb 20
4421
0
dic 19
3579
1
jul 19
7866
0
may 24
1205