From 1154c4c65f523d6a0906f06304af0c3615b5be3b Mon Sep 17 00:00:00 2001 From: "Apa (Open ERP)" Date: Sat, 24 Jan 2009 11:28:50 +0530 Subject: [PATCH] set formatLang function in production report bzr revid: apa@tinyerp.com-20090124055850-yayo3jjnykatp1rs --- addons/mrp/report/order.rml | 217 +++++++++++++++++------------------- 1 file changed, 104 insertions(+), 113 deletions(-) diff --git a/addons/mrp/report/order.rml b/addons/mrp/report/order.rml index 0209da707ac..cf803fef7b9 100644 --- a/addons/mrp/report/order.rml +++ b/addons/mrp/report/order.rml @@ -118,47 +118,25 @@ - + - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -167,185 +145,198 @@ + + + + + + + + + + + + + + + + + + + + + + - [[ repeatIn(objects,'o') ]] - + [[ repeatIn(objects,'o') ]] + - + - + - Production Order N° : [[ o.name ]] - + Production Order N° : [[ o.name ]] + - Product + Product - Quantity + Quantity - Priority + Priority - Note + Note - [[ '['+ o.product_id.code +']' ]] [[ o.product_id.name ]] + [[ o.product_id.code ]] [[ o.product_id.name ]] - [[ formatLang(o.product_qty) ]] + [[formatLang(o.product_qty) ]] - [[o.priority or '']] + [[o.priority or '']] - [[ o.product_id.description or '' ]] + [[ o.product_id.description or '' ]] - + - + - Printing date + Printing date - Planned Date + Planned Date - Partner Ref + Partner Ref - SO Number + SO Number
- + - [[ formatLang(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),date_time = True) ]] + [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] - [[ formatLang(o.date_planned, date=True) ]] + [[ formatLang(o.date_planned, date_time = True) ]] - [[ o.sale_ref or ' ' ]] + [[ o.sale_ref or ' ' ]] - [[ o.sale_name or '' ]] + [[ o.sale_name or '' ]]
- + - Work Orders - - - - + Work Orders + - Sequence + Sequence - Name + Name - WorkCenter + WorkCenter - No. Of Cycles + No. Of Cycles - No. Of Hours + No. Of Hours - + - [[ repeatIn(o.workcenter_lines,'line2') ]] - [[ line2.sequence ]] + [[ repeatIn(o.workcenter_lines,'line2') ]] + [[ line2.sequence ]] - [[ line2.name ]] + [[ line2.name ]] - [[ line2.workcenter_id.name ]] + [[ line2.workcenter_id.name ]] - [[ formatLang(line2.cycle) ]] + [[ formatLang(line2.cycle) ]] - [[ formatLang(line2.hour) ]] + [[ formatLang(line2.hour) ]] - + - Bill Of Material - - - - + Bill Of Material + - Product + Product - Qty + Qty - Source Location + Source Location - Destination Location - - - - - [[ repeatIn(o.move_lines,'line') ]] - [[ '['+line.product_id.code +']' ]][[ line.product_id.name ]] - - - [[ formatLang(line.product_qty) ]] [[line.product_uom.name]] - - - [[ line.location_id.name ]] - - - [[ line.location_dest_id.name ]] + Destination Location - - ......... - ......... - - - - - - - +
+ [[ repeatIn(o.move_lines,'line') ]] + + + + [[ line.product_id.code ]] [[ line.product_id.name ]] + + + [[ formatLang( line.product_qty) ]] [[line.product_uom.name]] + + + [[ line.location_id.name ]] + + + [[ line.location_dest_id.name ]] + + + + + + +