Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
6284 Представления

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

Аватар
Отменить

In enterprise or community?

Лучший ответ

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

Аватар
Отменить
Автор

Thanks a lot for this info.

Related Posts Ответы Просмотры Активность
0
мар. 15
3752
0
февр. 20
4421
0
дек. 19
3579
1
июл. 19
7866
0
мая 24
1205