MRP error when processing a procurement order with large message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello Guys,
I'm using OpenERP Addons revision #8616, when I try process a procurement order this error happens:
File "/opt/openerp/
cr.
File "/opt/openerp/
return f(self, *args, **kwargs)
File "/opt/openerp/
res = self._obj.
DataError: value too long for type character varying(124)
You can reproduce this error while trying to process any procurement order with a product with a long name, because product name is copied to name field in procurement order, if you look /opt/openerp/
message = _("Procurement '%s' is in exception: ") % (procurement.name) + message
cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id))