openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18049
[Bug 1076076] Re: es translations gen exception (procurement)
** Project changed: openobject-addons => openobject-server
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1076076
Title:
es translations gen exception (procurement)
Status in OpenERP Server:
Confirmed
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-server/+bug/1076076/+subscriptions
References