Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
6310 Vues

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

Avatar
Ignorer

In enterprise or community?

Meilleure réponse

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
Ignorer
Auteur

Thanks a lot for this info.

Publications associées Réponses Vues Activité
0
mars 15
3763
0
févr. 20
4425
0
déc. 19
3583
1
juil. 19
7884
0
mai 24
1236