From 5b7cfd8c5e84d47fae314275343e196a273f83b2 Mon Sep 17 00:00:00 2001 From: "Kirti Savalia (OpenERP)" Date: Mon, 5 Sep 2011 11:52:50 +0530 Subject: [PATCH] [IMP]: for uom xml predefined entity problems bzr revid: ksa@tinyerp.com-20110905062250-9ao1jytl9zbp5c5j --- addons/mrp/report/price.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py index c3d7b05658b..28899b70be0 100644 --- a/addons/mrp/report/price.py +++ b/addons/mrp/report/price.py @@ -70,7 +70,7 @@ class report_custom(report_rml): sellers_price += """"""+rml_obj.formatLang(price) +' '+ company_currency.symbol +"""\r\n""" xml += """ """+ to_xml(tools.ustr(prod_name)) +""" """+ to_xml(tools.ustr(main_sp_name)) + to_xml(tools.ustr(sellers)) + """ - """+ rml_obj.formatLang(prod_qtty) +' '+ product_uom.name +""" + """+ rml_obj.formatLang(prod_qtty) +' '+ to_xml(tools.ustr(product_uom.name)).replace('&', '&') +""" """+ rml_obj.formatLang(float(main_strd_price)) +' '+ company_currency.symbol +""" """ + main_sp_price + sellers_price + """'""" @@ -147,7 +147,7 @@ class report_custom(report_rml): - """ xml += """ - """ + _('Total Cost of %s %s') % (str(number), product.uom_id.name) + """: + """ + _('Total Cost of %s %s') % (str(number), to_xml(tools.ustr(product.uom_id.name)).replace('&', '&')) + """: """+ rml_obj.formatLang(total_strd, digits=purchase_price_digits) +' '+ company_currency.symbol + """ @@ -174,7 +174,7 @@ class report_custom(report_rml): xml += "" + xml_tmp + '' xml += """ - """ + _('Components Cost of %s %s') % (str(number), product.uom_id.name) + """: + """ + _('Components Cost of %s %s') % (str(number), to_xml(tools.ustr(product.uom_id.name)).replace('&', '&')) + """: """+ rml_obj.formatLang(total_strd, digits=purchase_price_digits) +' '+ company_currency.symbol + """ @@ -191,14 +191,14 @@ class report_custom(report_rml): xml += workcenter_header xml += "" + xml_tmp + '' xml += """ - """ + _('Work Cost of %s %s') % (str(number), product.uom_id.name) +""": + """ + _('Work Cost of %s %s') % (str(number), to_xml(tools.ustr(product.uom_id.name)).replace('&', '&')) +""": """+ rml_obj.formatLang(total2, digits=purchase_price_digits) +' '+ company_currency.symbol +""" '""" xml += """ - """ + _('Total Cost of %s %s') % (str(number), product.uom_id.name) + """: + """ + _('Total Cost of %s %s') % (str(number), to_xml(tools.ustr(product.uom_id.name)).replace('&', '&')) + """: """+ rml_obj.formatLang(total_strd+total2, digits=purchase_price_digits) +' '+ company_currency.symbol + """