[IMP]mrp : improve bom structure report

bzr revid: mma@tinyerp.com-20121017061659-bam8qklr8frdl8wo
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-10-17 11:46:59 +05:30
parent 5fef3eb23f
commit f006171ab3
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class bom_structure(report_sxw.rml_parse):
def _get_rec(object, level):
for l in object:
res = {}
res['name'] = l.name
res['name'] = l.product_id.name
res['pname'] = l.product_id.name
res['pcode'] = l.product_id.default_code
res['pqty'] = l.product_qty

View File

@ -116,7 +116,7 @@
<blockTable colWidths="192.0,198.0,71.0,71.0" style="Table1">
<tr>
<td>
<para style="terp_default_Bold_9">[[ o.name ]]</para>
<para style="terp_default_Bold_9">[[ o.product_id.name ]]</para>
</td>
<td>
<para style="terp_default_Bold_9">[ [[ (o.product_id.default_code) or removeParentNode('font') ]] ] [[ o.product_id.name ]]</para>