Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6302 Widoki

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

Awatar
Odrzuć

In enterprise or community?

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Thanks a lot for this info.

Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
3755
0
lut 20
4421
0
gru 19
3580
1
lip 19
7870
0
maj 24
1209