diff --git a/addons/mrp/report/order.py b/addons/mrp/report/order.py index 1d801b3aa2e..98f4bf1c0fb 100644 --- a/addons/mrp/report/order.py +++ b/addons/mrp/report/order.py @@ -39,4 +39,4 @@ class order(report_sxw.rml_parse): }) -report_sxw.report_sxw('report.mrp.production.order','mrp.production','addons/mrp/report/order.rml',parser=order) +report_sxw.report_sxw('report.mrp.production.order','mrp.production','addons/mrp/report/order.rml',parser=order, header=2) diff --git a/addons/mrp/report/order.rml b/addons/mrp/report/order.rml index cc1b0bf34b3..35a7351371f 100644 --- a/addons/mrp/report/order.rml +++ b/addons/mrp/report/order.rml @@ -3,6 +3,36 @@ @@ -13,42 +43,80 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + @@ -60,76 +128,89 @@ - [[ repeatIn(objects,'o') ]] - - - - - - - Production Order N° : [[ o.name ]] - - - - Printing date : [[ time.strftime('%d/%m/%Y') ]] - Partner Order reference : [[ o.sale_ref or ' ' ]] - SO number : [[ o.sale_name or '' ]] - - - - - - - Product Name - - - Product Description - - - Qty - - - -
- - - - [[ '['+ o.product_id.code +']' ]] [[ o.product_id.name ]] - - - [[ o.product_id.description ]] - - - [[ '%.2f' % o.product_qty ]] [[ o.product_uom.name ]] - - - -
+ [[ repeatIn(objects,'o') ]] - ......... - ......... + - + Production Order N° : [[ o.name ]] + + + + - Planned Date + Printing date - : + Planned Date - [[ time.strftime('%d/%m/%Y', time.strptime(o.date_planned, '%Y-%m-%d %H:%M:%S')) ]] - - - + Partner Ref + + + SO Number + + + Product Name - - +
+ + + + [[ time.strftime('%d/%m/%Y') ]] + + + [[ time.strftime('%d/%m/%Y', time.strptime(o.date_planned, '%Y-%m-%d %H:%M:%S')) ]] + + + [[ o.sale_ref or ' ' ]] + + + [[ o.sale_name or '' ]] + + + [[ '['+ o.product_id.code +']' ]] [[ o.product_id.name ]] + + + +
+ + + + [[ o.product_id.description ]] + + + + + + + Product + + + Qty + + + + + [[ repeatIn(o.move_lines,'line') ]] + [[ '['+line.product_id.code +']' ]][[ line.product_id.name ]] + + + [[ '%.2f' % line.product_qty ]] [[line.product_uom.name]] + + + + + ......... + ......... + + +