← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 743617] Re: One of the records you are trying to modify has already been deleted (Document type: ir.ui.menu).

 

I faced exactly the same today with another module.
In order to satisfy complete uninstallation process, there has to be special clean feature needed for so many base models and this has not yet been supported.

Thanks.

** Changed in: openobject-addons
       Status: New => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/743617

Title:
  One of the records you are trying to modify has already been deleted
  (Document type: ir.ui.menu).

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  Install module "city" (from addons-extra), then uninstall it and then
  install it again, then this module cannot be installed with the error
  described above. The trace looks like that some menus has been removed
  during uninstallation.

  [2011-03-27 20:26:12,491][crdev] INFO:init:module city: no quality certificate
  [2011-03-27 20:26:12,491][crdev] INFO:init:module city: loading city_view.xml
  [2011-03-27 20:26:12,687][crdev] DEBUG:translate:no translation language detected, skipping translation for "'AccessError'"
  [2011-03-27 20:26:12,687][crdev] DEBUG:translate:no translation language detected, skipping translation for "'One of the records you are trying to modify has already been deleted (Document type: %s).'"
  [2011-03-27 20:26:12,688][crdev] ERROR:tools.convert.xml_import:Parse error in /home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/city/city_view.xml:194:
  <menuitem name="Cities" groups="base.group_system" action="action_city" parent="base.menu_localisation" id="menu_city_partner"/>
  Traceback (most recent call last):
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/tools/convert.py", line 866, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/tools/convert.py", line 663, in _tag_menuitem
      pid = self.pool.get('ir.model.data')._update(cr, self.uid, 'ir.ui.menu', self.module, values, xml_id, noupdate=self.isnoupdate(data_node), mode=self.mode, res_id=res and res[0] or False)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/base/ir/ir_model.py", line 664, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/base/ir/ir_ui_menu.py", line 150, in write
      return super(ir_ui_menu, self).write(*args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/osv/orm.py", line 3389, in write
      _('One of the records you are trying to modify has already been deleted (Document type: %s).') % self._description)
  except_orm: ('AccessError', 'One of the records you are trying to modify has already been deleted (Document type: ir.ui.menu).')
  [2011-03-27 20:26:12,718][crdev] DEBUG:web-services:AccessError
  Traceback (most recent call last):
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
      _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/pooler.py", line 60, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/__init__.py", line 901, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
   skip_modules=processed_modules))
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/__init__.py", line 758, in load_module_graph
      load_init_update_xml(cr, m, idref, mode, kind)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/__init__.py", line 651, in load_init_update_xml
      tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/tools/convert.py", line 976, in convert_xml_import
      obj.parse(doc.getroot())
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/tools/convert.py", line 866, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/tools/convert.py", line 663, in _tag_menuitem
      pid = self.pool.get('ir.model.data')._update(cr, self.uid, 'ir.ui.menu', self.module, values, xml_id, noupdate=self.isnoupdate(data_node), mode=self.mode, res_id=res and res[0] or False)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/base/ir/ir_model.py", line 664, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/addons/base/ir/ir_ui_menu.py", line 150, in write
      return super(ir_ui_menu, self).write(*args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/osv/orm.py", line 3389, in write
      _('One of the records you are trying to modify has already been deleted (Document type: %s).') % self._description)
  except_orm: ('AccessError', 'One of the records you are trying to modify has already been deleted (Document type: ir.ui.menu).')
  [2011-03-27 20:26:12,736][crdev] DEBUG:web-services:netrpc: rpc-dispatching exception
  Traceback (most recent call last):
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/service/netrpc_server.py", line 70, in run
      result = self.dispatch(msg[0], msg[1], msg[2:])
    File "/home/dell/Documents/Projects/openerp-trunk/server/openerp/netsvc.py", line 420, in dispatch
      raise OpenERPDispatcherException(e, tb_s)
  OpenERPDispatcherException



References