[trunk] Change default shortcut and update base module crash

Bug #699866 reported by Quentin THEURET @Amaris
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Create a new database with French language.

As see in bug #699858, default shortcuts isn't translated. I remove the 'Reconfigure' shortcut by clicking on 'Reconfigure', then on the star on the first configuration wizard. Click a next time on the star on the first configuration wizard to recreate the shortcut.

This new shortcut is translated with 'Démarrer la configuration' value. But when I update the 'base' module, an error occurs.

Traceback :
[2011-01-07 16:16:26,789][test] ERROR:db.cursor:bad query: insert into "ir_ui_view_sc" (id,"resource","res_id","user_id","name",create_uid,create_date) values (10,E'ir.ui.menu',64,1,E'Reconfigure',1,now())
Traceback (most recent call last):
  File "/home/quentin/Developpement/OpenERP_development/6.0/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
IntegrityError: ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « ir_ui_view_sc_shortcut_unique »

Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 768, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
    return fmt.format(record)
  File "/home/quentin/Developpement/OpenERP_development/6.0/server/bin/netsvc.py", line 182, in format
    return DBFormatter.format(self, record)
  File "/home/quentin/Developpement/OpenERP_development/6.0/server/bin/netsvc.py", line 176, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.6/logging/__init__.py", line 448, in format
    s = s + record.exc_text
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1238: ordinal not in range(128)

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello,

It has been Fixed into https://code.launchpad.net/~openerp-dev/openobject-server/menu_shortcuts branch by:
Revision ID: <email address hidden>
Revno: 3245

Thanks.

Changed in openobject-server:
status: In Progress → Fix Released
Changed in openobject-server:
milestone: none → 6.0
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Thanks for the fix, merging it now :-)

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed on trunk with server revision 3284 revision-id: <email address hidden>

Thanks for taking the time to report this!

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.