Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3185 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

thanks,

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
toukok. 22
2278
0
kesäk. 21
2484
0
kesäk. 23
3483
2
huhtik. 23
12824
0
toukok. 22
1890