[[repeatIn(objects,'o')]]

Production Order N° : [[ o.name ]]

Source Document	Product	Quantity
[[ o.origin ]]	[[ (o.product_id and o.product_id.code) or '' ]] [[ (o.product_id and o.product_id.name) or '' ]]	[[formatLang(o.product_qty) ]] [[ (o.product_id and o.product_uom and o.product_uom.name) or '']]

Scheduled Date	Printing date	Partner Ref	SO Number
[[ formatLang(o.date_planned, date_time = True) ]]	[[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]]	[[ ('sale_ref' in o._columns.keys() and o.sale_ref) or '' ]]	[[ ('sale_name' in o._columns.keys() and o.sale_name) or '' ]]

Work Orders [[ o.workcenter_lines ==[] and removeParentNode('para')]]

Sequence	Name [[ o.workcenter_lines ==[] and removeParentNode('blockTable')]]	WorkCenter	No. Of Cycles	No. Of Hours

[[ repeatIn(o.workcenter_lines,'line2') ]]

[[ line2.sequence ]]	[[ line2.name ]]	[[ (line2.workcenter_id and line2.workcenter_id.name) or '' ]]	[[ formatLang(line2.cycle) ]]	[[ formatLang(line2.hour) ]]

Bill Of Material

Product	Quantity	Source Location	Destination Location

Products to Consume [[ o.move_lines ==[] and removeParentNode('section')]]

[[ repeatIn(o.move_lines,'line') ]]

[[ (line.product_id and line.product_id.code) or '' ]] [[ (line.product_id and line.product_id.name) or '' ]]	[[ formatLang( line.product_qty) ]] [[ (line.product_uom and line.product_uom.name) or '']]	[[ (line.location_id and line.location_id.name) or '' ]]	[[ (line.location_dest_id and line.location_dest_id.name) or '' ]]

Consumed Products [[ o.move_lines2 ==[] and removeParentNode('section')]]

[[ repeatIn(o.move_lines2,'line2') ]]

[[ (line2.product_id and line2.product_id.code) or '' ]] [[ (line2.product_id and line2.product_id.name) or '' ]]	[[ formatLang( line2.product_qty) ]] [[ (line2.product_uom and line2.product_uom.name) or '']]	[[ (line2.location_id and line2.location_id.name) or '' ]]	[[ (line2.location_dest_id and line2.location_dest_id.name) or '' ]]

apa

2006-08-31T10:54:44