跳至内容
菜单
此问题已终结
2 回复
6289 查看

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.

相关帖文 回复 查看 活动
0
3月 15
3752
0
2月 20
4421
0
12月 19
3579
1
7月 19
7866
0
5月 24
1205