It is currently Wed May 23, 2012 3:26 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: BOM Structure Report modification
PostPosted: Mon Oct 03, 2011 4:47 pm 
Offline

Joined: Mon Oct 03, 2011 3:16 pm
Posts: 5
Location: United Kingdom
Hi. I am trying to modify the BOM Structure report through the OpenOffice plugin. I want to add the manufacturers name, part name and reference as well as the description for each BOM line item. I have added fields and tried various lines of code (for example [[ repeatIn(get_children(o.bom_lines), 'l') ]] followed by [[ '... '*(l['level']) ]] - [[ l['name'] ]] [[ l['manufacturer.name'] ]] [[ l['description'] ]]) but the report does not give me the information I require.

Can anybody advise what I need to do.

Thanks in advance,

M.


Top
 Profile  
 
 Post subject: Re: BOM Structure Report modification
PostPosted: Sun Oct 09, 2011 7:54 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
I think your issue will be with get_children. Reports cannot usually access the methods of a class unless you declare them in localcontext in a custom parser.

_________________
Graeme


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP