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

i want to add line items to my detail band in ireport can u plz help me how to add line items in jasper report

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

Hi...

You need to set the Property for the Report as follows

Property Name: OPENERP_RELATIONS

Property Value: ['line_ids']

When you set this property then  your report will loop for the child records [o2m lines]

الصورة الرمزية
إهمال

You can also acheive the same using OPENERP_PATH_PREFIX, if you have a Subreport designed for child lines

أفضل إجابة

Hello,

I would like to do the same but the value to displays for me is 'bom_lines' not in the first node of the data record but in the next level under 'bom_ids'. How can format the property value?

Thanks 

Christophe

الصورة الرمزية
إهمال

So, the solution is to use Property Value like ['node/node/node']. Exemple to display a report from the products who contains a bom lines: Go to properties of the report add a new one Property Name: OPENERP_RELATIONS Property Value: ['bom_ids/bom_lines/bom_lines']

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
4310
0
يناير 18
2848
1
مارس 15
8221
0
مارس 15
3500
1
مارس 15
5107