← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 616644] Re: Translation regression - python code gets in the strings (5.0)

 

** Changed in: openobject-server
    Milestone: 5.0.13 => None

-- 
Translation regression - python code gets in the strings (5.0)
https://bugs.launchpad.net/bugs/616644
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Confirmed

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!