=== verändert Datei mrp/report/price.py
--- mrp/report/price.py 2011-12-21 13:10:28 +0000
+++ mrp/report/price.py 2012-11-11 14:56:50 +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 = '',''
@@ -111,7 +111,7 @@
595.27
841.88
55.00mm,58.00mm,29.00mm,29.00mm,29.00mm
- """ % (user_pool.browse(cr, uid, uid).company_id.name)
+ """ % (to_xml(user_pool.browse(cr, uid, uid).company_id.name))
config_stop = """
Generated by OpenERP
@@ -127,7 +127,7 @@
%s
- """ % (_('Work Center name'), _('Cycles Cost'), _('Hourly Cost'),_('Work Cost'))
+ """ % (to_xml(_('Work Center name')), to_xml(_('Cycles Cost')), to_xml(_('Hourly Cost')), to_xml(_('Work Cost')))
prod_header = """
%s
@@ -136,15 +136,16 @@
%s
%s
- """ % (_('Components'), _('Components suppliers'), _('Quantity'),_('Cost Price per Uom'), _('Supplier Price per Uom'))
+ """ % (to_xml(_('Components')), to_xml(_('Components suppliers')), to_xml(_('Quantity')),
+ to_xml(_('Cost Price per Uom')), to_xml(_('Supplier Price per Uom')))
purchase_price_digits = rml_obj.get_digits(dp='Purchase 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 = "%s" %(_("Cost Structure"))
- title += "%s" % (to_xml(product.name))
+ title = "%s" % (to_xml(_("Cost Structure")))
+ title += "%s" % (to_xml(_(product.name)))
xml += "" + title + prod_header + ""
if not bom_id:
total_strd = number * product.standard_price
@@ -157,7 +158,7 @@
-
"""
xml += """
- """ + _('Total Cost of %s %s') % (str(number), product_uom_name) + """:
+ """ + to_xml(_('Total Cost of %s %s')) % (str(number), product_uom_name) + """:
"""+ rml_obj.formatLang(total_strd, digits=purchase_price_digits) +' '+ (company_currency_symbol) + """
@@ -184,7 +185,7 @@
xml += "" + xml_tmp + ''
xml += """
- """ + _('Components Cost of %s %s') % (str(number), product_uom_name) + """:
+ """ + to_xml(_('Components Cost of %s %s')) % (str(number), product_uom_name) + """:
"""+ rml_obj.formatLang(total_strd, digits=purchase_price_digits) +' '+ (company_currency_symbol) + """
@@ -201,14 +202,14 @@
xml += workcenter_header
xml += "" + xml_tmp + ''
xml += """
- """ + _('Work Cost of %s %s') % (str(number), product_uom_name) +""":
+ """ + to_xml(_('Work Cost of %s %s')) % (str(number), product_uom_name) +""":
"""+ rml_obj.formatLang(total2, digits=purchase_price_digits) +' '+ (company_currency_symbol) +"""
'"""
xml += """
- """ + _('Total Cost of %s %s') % (str(number), product_uom_name) + """:
+ """ + to_xml(_('Total Cost of %s %s')) % (str(number), product_uom_name) + """:
"""+ rml_obj.formatLang(total_strd+total2, digits=purchase_price_digits) +' '+ (company_currency_symbol) + """