[7.0, trunk] Icon path in ir_module_module table longer in ORM than in base.sql

Bug #1287204 reported by Stefan Rijnhart (Opener)
10
This bug affects 2 people
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/src/img/icon.png. I can add the module to the addons path of an existing database, but I cannot create a new database if the addon is already in the module path.

This will lead to the following error:

  File "openobject-server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.