تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4870 أدوات العرض

Hello! I am new to Odoo and currently working as a Junior Odoo Developer.

I am assigned to a task which adding percentage column to each line (not sure it should be every of them, or some) of both Profit & Loss and Balance Sheet reports.

A bit of Example as follow:


What's the best way to achieve this?
Thanks in advance!

الصورة الرمزية
إهمال
أفضل إجابة

Hello 

User widget="percentage" in xml file

الصورة الرمزية
إهمال
الكاتب

thanks for your answer,
however, where exactly should I put that?

<field name="your field" widget="percentage"/>

الكاتب

okay, thanks.
but the field is not there already, how can I directly show it in xml while the field is not in python yet?

Inherit report do change in xml file it will work

الكاتب

ok, i have checked the xml file, which is "account_report_view.xml"
but there, i can only see the fields of setting, not the actual report lines
fyi, those reports are not the direct model, they are the objects made from "account.financial.html.report" model

In accounting report, it shows account.move.line record so you can add it in accout.move.line amount field

الكاتب

ok thanks. btw you mean the "account_accounting_report.py" one or the "account_report.py" one?

Hi Jagdish,

I am working on something similar, how do i add let's say a budget column to the Profit and Loss statement?

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 23
3667
1
مارس 25
1069
1
أبريل 24
2587
1
فبراير 23
6062
0
نوفمبر 15
3327