From 948d1daa0f0422f8d267919bf84d04e4cd4a3706 Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Wed, 14 Jul 2010 18:28:15 +0530 Subject: [PATCH] [IMP]:mrp:improved production order report. bzr revid: apa@tinyerp.com-20100714125815-qeh4oeu2ielj6ixg --- addons/mrp/report/order.rml | 103 +++++++++++++----------------------- 1 file changed, 36 insertions(+), 67 deletions(-) diff --git a/addons/mrp/report/order.rml b/addons/mrp/report/order.rml index 3db5396d444..0f08d368900 100644 --- a/addons/mrp/report/order.rml +++ b/addons/mrp/report/order.rml @@ -118,7 +118,7 @@ - + @@ -126,7 +126,7 @@ - + @@ -135,15 +135,7 @@ - - - - - - - - - + @@ -186,10 +178,9 @@ + - -
[[ repeatIn(objects,'o') ]] @@ -204,7 +195,7 @@ - + Product @@ -220,7 +211,7 @@ - + [[ o.product_id.code ]] [[ o.product_id.name ]] @@ -236,16 +227,16 @@ - + - + - Printing date + Planned Date - Planned Date + Printing date Partner Ref @@ -256,31 +247,31 @@
- + - - [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] - [[ formatLang(o.date_planned, date_time = True) ]] - [[ 'sale_ref' in o._columns.keys() and o.sale_ref or removeParentNode('para') ]] + [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] - [[ 'sale_name' in o._columns.keys() and o.sale_name or removeParentNode('para') ]] + [[ ('sale_ref' in o._columns.keys() and o.sale_ref) or '' ]] + + + [[ ('sale_name' in o._columns.keys() and o.sale_name) or '' ]]
- + Work Orders - + - + Sequence @@ -301,7 +292,7 @@
[[ repeatIn(o.workcenter_lines,'line2') ]] - + [[ line2.sequence ]] @@ -324,17 +315,19 @@
- + Bill Of Material -
- Products to Consume - - [[ o.move_lines ==[] and removeParentNode('section')]] + Consumed Products [[ o.move_lines2 ==[] and removeParentNode('para')]] + Products to Consume [[ o.move_lines ==[] and removeParentNode('para')]] + + + + Product @@ -350,10 +343,9 @@ -
- - [[ repeatIn(o.move_lines,'line') ]] + [[ repeatIn(o.move_lines,'line') ]] + [[ line.product_id.code ]] [[ line.product_id.name ]] @@ -372,34 +364,10 @@ -
- - - +
- Consumed Products - - - [[ o.move_lines2 ==[] and removeParentNode('section')]] - - - Product - - - Quantity - - - Source Location - - - Destination Location - - - -
-
- - [[ repeatIn(o.move_lines2,'line2') ]] + [[ repeatIn(o.move_lines2,'line2') ]] + [[ line2.product_id.code ]] [[ line2.product_id.name ]] @@ -418,8 +386,9 @@ - + + +
-
- \ No newline at end of file +