Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3304 มุมมอง

Hello,

I need to add the balance field of each customer to his report. The balance location:

Accounting ---> Customers ---> Customers  ->  Partner Ledger --->balance.

I want to add this balance field to the report I had created.

How can I do that? May anyone help.   

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello asma.
Please check this method.(odoo 13)
account_reports/models/account_partner_ledger.py

@api.model
def _get_lines(self, options, line_id=None):

which return List of dictionary in that Each partner detail (credit/debit ) data is there.

base on that you can calculated you balance in PDF report.
In QWEB call this method.(def _get_lines(self, options, line_id=None)

Thanks & Regards,

Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง
ผู้เขียน

thanks,

now only I found your answer but where can I find the line id I need.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 22
2445
0
มิ.ย. 21
2667
0
มิ.ย. 23
3630
2
เม.ย. 23
13167
0
พ.ค. 22
2045