[7.0, trunk] Icon path in ir_module_module table longer in ORM than in base.sql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a custom module with a technical name longer than 40 characters. It has an icon in static/
This will lead to the following error:
File "openobject-
res = self._obj.
DataError: value too long for type character varying(64)
Analysis: although the length of the 'icon' field (containing the full icon path including the module directory name) is 128, its length in base.sql is still only 64. The path of my module's icon is 66 characters long, and this halts the database creation process.
Proposed solution: adapt the length of the field in base.sql to the length of the field in the model definition.
Related branches
- Pedro Manuel Baeza (community): Approve (code review and test)
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/addons/base/base.sql (+1/-1)