TypeError: The model "crm.case" specifies an unexisting parent class "crm.case" You may need to add a dependency on the parent class' module.

Bug #1078324 reported by Maxime Chambreuil (http://www.savoirfairelinux.com) on 2012-11-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fleet maintenance for OpenERP
Undecided
Unassigned

Bug Description

I tried installing fleet_maintenance on OpenERP 6.1 and I got the following error:

Server Traceback (most recent call last):
  File "/home/max/openerp/web/6.1/addons/web/common/http.py", line 593, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/max/openerp/server/6.1/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/max/openerp/server/6.1/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/max/openerp/server/6.1/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/max/openerp/server/6.1/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/max/openerp/server/6.1/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/max/openerp/server/6.1/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/max/openerp/server/6.1/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/max/openerp/server/6.1/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/home/max/openerp/server/6.1/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/max/openerp/server/6.1/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/home/max/openerp/server/6.1/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/home/max/openerp/server/6.1/openerp/modules/loading.py", line 167, in load_module_graph
    models = pool.load(cr, package)
  File "/home/max/openerp/server/6.1/openerp/modules/registry.py", line 109, in load
    res.append(cls.create_instance(self, cr))
  File "/home/max/openerp/server/6.1/openerp/osv/orm.py", line 877, in create_instance
    'You may need to add a dependency on the parent class\' module.' % (name, parent_name))
TypeError: The model "crm.case" specifies an unexisting parent class "crm.case"
You may need to add a dependency on the parent class' module.

Alexis de Lattre (alexis-via) wrote :

You didn't get the code of the module fleet_maintenance from the right place (I guess you got it from the extra-addons). You should get the code from lp:fleet_maintenance ; it works very well on OpenERP 6.1 (and crm.case has been removed in the current code).

Changed in fleet-maintenance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers