Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6285 Näkymät

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

Avatar
Hylkää

In enterprise or community?

Paras vastaus

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
Hylkää
Tekijä

Thanks a lot for this info.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 15
3752
0
helmik. 20
4421
0
jouluk. 19
3579
1
heinäk. 19
7866
0
toukok. 24
1205