openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17548
[Bug 1076076] [NEW] es translations gen exception (procurement)
Public bug reported:
#. module: procurement
#: code:addons/procurement/procurement.py:379
#, python-format
msgid "Not enough stock and no minimum orderpoint rule defined."
msgstr ""
"No hay suficiente stock y no se ha definido una regla de stock mínimo."
The original translation (up) generates a exception when is called.
file: procurement.py
lines: 372~385
code:
if not (procurement.move_id.state in ('done','assigned','cancel')):
ok = ok and self.pool.get('stock.move').action_assign(cr, uid, [id])
cr.execute('select count(id) from stock_warehouse_orderpoint where product_id=%s', (procurement.product_id.id,))
res = cr.fetchone()[0]
if not res and not ok:
message = _("Not enough stock and no minimum orderpoint rule defined.")
elif not res:
message = _("No minimum orderpoint rule defined.")
elif not ok:
message = _("Not enough stock.")
if message:
self.log(cr, uid, procurement.id, _("Procurement '%s' is in exception: ") % (procurement.name) + message)
cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id))
# ->Error! ^
# len('No hay suficiente stock y no ha definido regla de stock mínimo.') > size(message)
The translated text length is longer than the field length, then error
is raised. the translation (down) works fine!
#. module: procurement
#: code:addons/procurement/procurement.py:379
#, python-format
msgid "Not enough stock and no minimum orderpoint rule defined."
msgstr ""
"No hay suficiente stock y no ha definido regla de stock mínimo."
Note. Only affect translation (es.po)
** Affects: openobject-addons
Importance: Undecided
Status: New
** Patch added: "Updated translation string"
https://bugs.launchpad.net/bugs/1076076/+attachment/3426827/+files/patch.diff
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1076076
Title:
es translations gen exception (procurement)
Status in OpenERP Addons (modules):
New
Bug description:
#. module: procurement
#: code:addons/procurement/procurement.py:379
#, python-format
msgid "Not enough stock and no minimum orderpoint rule defined."
msgstr ""
"No hay suficiente stock y no se ha definido una regla de stock mínimo."
The original translation (up) generates a exception when is called.
file: procurement.py
lines: 372~385
code:
if not (procurement.move_id.state in ('done','assigned','cancel')):
ok = ok and self.pool.get('stock.move').action_assign(cr, uid, [id])
cr.execute('select count(id) from stock_warehouse_orderpoint where product_id=%s', (procurement.product_id.id,))
res = cr.fetchone()[0]
if not res and not ok:
message = _("Not enough stock and no minimum orderpoint rule defined.")
elif not res:
message = _("No minimum orderpoint rule defined.")
elif not ok:
message = _("Not enough stock.")
if message:
self.log(cr, uid, procurement.id, _("Procurement '%s' is in exception: ") % (procurement.name) + message)
cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id))
# ->Error! ^
# len('No hay suficiente stock y no ha definido regla de stock mínimo.') > size(message)
The translated text length is longer than the field length, then error
is raised. the translation (down) works fine!
#. module: procurement
#: code:addons/procurement/procurement.py:379
#, python-format
msgid "Not enough stock and no minimum orderpoint rule defined."
msgstr ""
"No hay suficiente stock y no ha definido regla de stock mínimo."
Note. Only affect translation (es.po)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1076076/+subscriptions
Follow ups
References