Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3160 Weergaven

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.   

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

thanks,

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mei 22
2250
0
jun. 21
2471
0
jun. 23
3473
2
apr. 23
12804
0
mei 22
1877