Skip to Content
Menu
This question has been flagged
1273 Views

Hey there im kinda stuck while migrating a custom module that modifies and add some filters for analytic entries reports in odoo8.

While trying to install the module on odoo9 im getting this error, my guess is that this module im inheriting on models.py ('analytic.entries.report') doesnt exist anymore on odoo9. If someone could help me figure out where i can look to know how did implemented analytic reports on odoo9 to adapt my module to odoo9 version would be really apreciatted.

Thanks in advance.  --> 


Odoo Server Error
Traceback (most recent call last):
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 659, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 332, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 325, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 975, in __call__
    return self.method(*args, **kw)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/home/alejandro/impulso/odoo9/git/odoo/addons/web/controllers/main.py", line 901, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/alejandro/impulso/odoo9/git/odoo/addons/web/controllers/main.py", line 889, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/addons/base/module/module.py", line 460, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/addons/base/module/module.py", line 535, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/registry.py", line 386, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/loading.py", line 378, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/loading.py", line 271, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/loading.py", line 147, in load_module_graph
    models = registry.load(cr, package)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/registry.py", line 169, in load
    model = cls._build_model(self, cr)
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/models.py", line 591, in _build_model
    original_module = pool[name]._original_module if name in parents else cls._module
  File "/home/alejandro/impulso/odoo9/git/odoo/openerp/modules/registry.py", line 84, in __getitem__
    return self.models[model_name]
KeyError: 'analytic.entries.report'
Avatar
Discard