Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6286 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

In enterprise or community?

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks a lot for this info.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3752
0
thg 2 20
4421
0
thg 12 19
3579
1
thg 7 19
7866
0
thg 5 24
1205