From cd4b28185810a733626e46ff406998a6b88f5535 Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Mon, 13 Sep 2010 14:31:19 +0530 Subject: [PATCH] [IMP] mrp: BoM structure report improved. bzr revid: uco@tinyerp.com-20100913090119-hhd1bc116i2n2et9 --- addons/mrp/report/bom_structure.py | 1 + addons/mrp/report/bom_structure.rml | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/addons/mrp/report/bom_structure.py b/addons/mrp/report/bom_structure.py index b38f2499c40..a5b43c19f01 100644 --- a/addons/mrp/report/bom_structure.py +++ b/addons/mrp/report/bom_structure.py @@ -40,6 +40,7 @@ class bom_structure(report_sxw.rml_parse): res = {} res['name'] = l.name res['pname'] = l.product_id.name + res['pcode'] = l.product_id.default_code res['pqty'] = l.product_qty res['uname'] = l.product_uom.name res['code'] = l.code diff --git a/addons/mrp/report/bom_structure.rml b/addons/mrp/report/bom_structure.rml index c05da1242ea..533d7454943 100644 --- a/addons/mrp/report/bom_structure.rml +++ b/addons/mrp/report/bom_structure.rml @@ -67,7 +67,9 @@ + + @@ -82,7 +84,7 @@ - BOM + BOM Name Product Name @@ -91,23 +93,23 @@ Quantity - Code + BOM Ref - [[ o.name ]] + [[ o.name ]] - [[ o.product_id.name ]] + [ [[ (o.product_id.default_code) or removeParentNode('font') ]] ] [[ o.product_id.name ]] - [[ o.product_qty ]] [[ o.product_uom.name ]] + [[ o.product_qty ]] [[ o.product_uom.name ]] - [[ o.code ]] + [[ o.code ]] @@ -116,10 +118,10 @@ - [[ '... '*(l['level']) ]]-[[ l['name'] ]] + [[ '... '*2*(l['level']) ]]-[[ l['name'] ]] - [[ l['pname'] ]] + [ [[ (l['pcode']) or removeParentNode('font') ]] ] [[ l['pname'] ]] [[ l['pqty'] ]] [[ l['uname'] ]]