Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
6321 Visualizzazioni

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

Avatar
Abbandona

In enterprise or community?

Risposta migliore

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
Abbandona
Autore

Thanks a lot for this info.

Post correlati Risposte Visualizzazioni Attività
0
mar 15
3771
0
feb 20
4457
0
dic 19
3587
1
lug 19
7902
0
mag 24
1254