c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #09365
[Bug 616644] Re: Translation regression - python code gets in the strings (5.0)
seems fixed in trunk.
** Changed in: openobject-server
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/616644
Title:
Translation regression - python code gets in the strings (5.0)
Status in OpenObject Server:
Fix Released
Bug description:
Hi!
5.0 latest bzr.
I get message strings like the examples below. All of them happen after raise osv.except_osv calls like this:
if not line.uos_id:
raise osv.except_osv(_('UserError'),
_("This invoice line doesn't have UoM: %s" % line.name))
#, python-format
msgid "This invoice line doesn't have UoM: %s\" % line.name))\n"
" invprods[k]['qty'] += uom_obj._compute_qty_obj(cr, uid,\n"
" line.uos_id, line.quantity, line.product_id.uom_id)\n"
" invprods[k]['price_subtotal'] += line.price_subtotal\n"
" inv_total += line.price_subtotal\n"
" for k, prod in invprods.iteritems():\n"
" invprods[k]['price_unit'] = prod['price_subtotal'] / prod['qty']\n"
...continues for 50 lines
#, python-format
msgid "This product is on a picking but missing from the invoice: %s' % prod_name))\n"
" alreadypick_total = 0\n"
" for k, qty in alreadypickprods.iteritems():\n"
" alreadypick_total += qty * invprods[k]['price_unit']\n"
" #calculate shared costs\n"
" shared_costs_int = {}\n"
" shared_costs_dom = 0\n"
....continues for 100 lines!