[TRUNK] regression of the update all

Bug #530835 reported by Jean-Sebastien SUZANNE - http://www.Syleam.fr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Status tracked in Trunk
Trunk
Fix Released
Undecided
Unassigned

Bug Description

HI

Server revno: 2103
Addons revno: 3102
Client revno: 1182

I create a new data base with the CRM ans sale module with the install wizard
I stop and restart with the update all (-u all) option. The server not restart with the next traceback.

In the attachment, there is the all server message.

--------------8<---------------8<-------------
Traceback (most recent call last):
  File "./openerp-server.py", line 112, in <module>
    pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/addons/__init__.py", line 724, in load_modules
    modobj.update_list(cr, 1)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/addons/base/module/module.py", line 322, in update_list
    'certificate': terp.get('certificate') or None,
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 2966, in write
    self.pool.get(object)._store_set_values(cr, user, ids, fields, context)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 3225, in _store_set_values
    result = self._columns[val[0]].get(cr, self, ids, val, 1, context=context)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/fields.py", line 666, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/addons/base/module/module.py", line 135, in _get_views
    res[mnames[data_id.module]]['menus_by_module'] += menu_obj.browse(cr,uid,data_id.res_id).complete_name + '\n'
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 262, in __getattr__
    return self[name]
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 195, in __getitem__
    datas = self._table.read(self._cr, self._uid, ids, fffields, context=self._context, load="_classic_write")
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 2491, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 2619, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/fields.py", line 666, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/addons/base/ir/ir_ui_menu.py", line 134, in _get_full_name
    res[m.id] = self._get_one_full_name(m)
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/addons/base/ir/ir_ui_menu.py", line 140, in _get_one_full_name
    if menu.parent_id:
  File "/home/alnjssuza/Projets/clients/prodigg/openerp/trunk2/server/bin/osv/orm.py", line 264, in __getattr__
    raise AttributeError(e)

--------------8<---------------8<-------------

Distribution: Ubuntu
Version: 9.10 (karmic)
Python 2.6.4

Locale:
  LANG=fr_FR.UTF-8

Regards

Jean-Sébastien

Tags: all server update
Revision history for this message
Jean-Sebastien SUZANNE - http://www.Syleam.fr (alnjssuza) wrote :
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed on trunk as of 2097 (revid:<email address hidden>). I also committed a small fix specifically for your case (hr's menus) in addons, but it shouldn't be *necessary* per se.

Could you check it out?

Revision history for this message
Jean-Sebastien SUZANNE - http://www.Syleam.fr (alnjssuza) wrote :

Good its works

Thanks Xavier

Regards

Jean-Sébastien

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Nice. Thanks for the report and test, closing the bug now.

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

Other bug subscribers

Bug attachments

Remote bug watches

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