Arnaud Pineux (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1073455-api into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1073455 in OpenERP Addons: "mrp-report "product cost structure" XML
conversion"
https://bugs.launchpad.net/openobject-addons/+bug/1073455
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1073455-api/+merge/137864
Catch special char in price.py to avoid xml parse error.
Add to_xml() at some place.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1073455-api/+merge/137864
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1073455-api.
=== modified file 'mrp/report/price.py'
--- mrp/report/price.py 2012-11-29 22:26:45 +0000
+++ mrp/report/price.py 2012-12-04 14:39:47 +0000
@@ -51,7 +51,7 @@
prod_name = to_xml(bom['name'])
prod_qtty = factor * bom['product_qty']
product_uom = product_uom_pool.browse(cr, uid, bom['product_uom'], context=context)
- product_uom_name = to_xml(product_uom.name)
+ product_uom_name = to_xml(_(product_uom.name))
main_sp_price, main_sp_name , main_strd_price = '','',''
sellers, sellers_price = '',''
@@ -141,9 +141,9 @@
purchase_price_digits = rml_obj.get_digits(dp='Product Price')
for product in product_pool.browse(cr, uid, ids, context=context):
- product_uom_name = to_xml(product.uom_id.name)
+ product_uom_name = to_xml(_(product.uom_id.name))
bom_id = bom_pool._bom_find(cr, uid, product.id, product.uom_id.id)
- title = "<title>%s</title>" %(_("Cost Structure"))
+ title = "<title>%s</title>" % (_("Cost Structure"))
title += "<title>%s</title>" % (to_xml(product.name))
xml += "<lines style='header'>" + title + prod_header + "</lines>"
if not bom_id:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp