Can't save/create a new filter in V6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
High
|
OpenERP's Framework R&D |
Bug Description
Creating or saving a new filter gives this:
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: ERREUR: valeur trop longue pour le type character varying(16)
In "ir.field" object, 'model_id' is a selection field (which means a char(16) field in postgres) and
def _list_all_
return cr.fetchall()
gives the list of possible values which are of course longer than 16 characters.
I guess the model_id field of ir.filter should actually be a many2one (maybe with a selection widget on the view). This would solve the issue, and would also be cleaner...
You are totally right. At the moment you can only save filters for objects whose technical name is shorter than 16 characters!
Thanks for the report!