Kirti Savalia(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-834004-ksa into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #834004 in OpenERP Addons: "[6.0.3] Product cost structure report xml 
predefined entities problem"
  https://bugs.launchpad.net/openobject-addons/+bug/834004

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-834004-ksa/+merge/73366

xml predefined entity problems in product cost structure.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-834004-ksa/+merge/73366
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-834004-ksa.
=== modified file 'mrp/report/price.py'
--- mrp/report/price.py	2011-03-18 07:52:14 +0000
+++ mrp/report/price.py	2011-08-30 12:49:24 +0000
@@ -26,7 +26,7 @@
 from report import report_sxw
 from datetime import datetime
 from tools.translate import _
-
+import tools
 
 #FIXME: we should use toxml
 class report_custom(report_rml):
@@ -55,7 +55,7 @@
             sellers, sellers_price = '',''
 
             if prod.seller_id:
-                main_sp_name = "<b>%s</b>\r\n" %(prod.seller_id.name)
+                main_sp_name = "<b>%s</b>\r\n" %(to_xml(tools.ustr(prod.seller_id.name)))
                 price = supplier_info_pool.price_get(cr, uid, prod.seller_id.id, prod.id, number*prod_qtty)[prod.seller_id.id]
                 price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
                 main_sp_price = """<b>"""+rml_obj.formatLang(price)+' '+ company_currency.symbol+"""</b>\r\n"""
@@ -64,7 +64,7 @@
             main_strd_price = str(std_price) + '\r\n'
             sum_strd = prod_qtty*std_price
             for seller_id in prod.seller_ids:
-                sellers +=  '- <i>'+ seller_id.name.name +'</i>\r\n'
+                sellers +=  '- <i>'+ to_xml(tools.ustr(seller_id.name.name)) +'</i>\r\n'
                 price = supplier_info_pool.price_get(cr, uid, seller_id.name.id, prod.id, number*prod_qtty)[seller_id.name.id]
                 price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
                 sellers_price += """<i>"""+rml_obj.formatLang(price) +' '+ company_currency.symbol +"""</i>\r\n"""

_______________________________________________
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

Reply via email to