Skip to Content
Menu
This question has been flagged

Kind of a puzzling situation. I can't upgrade any modules that are dependent on analytic. When I try to upgrade/install I get error:

Traceback (most recent call last):
  File "/opt/odoo/src/openerp/http.py", line 648, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/src/openerp/http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/src/openerp/http.py", line 321, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/src/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/src/openerp/http.py", line 314, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/src/openerp/http.py", line 964, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/src/openerp/http.py", line 514, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/src/addons/web/controllers/main.py", line 892, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/src/addons/web/controllers/main.py", line 880, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/module/module.py", line 573, in button_immediate_upgrade
    return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/module/module.py", line 534, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/odoo/src/openerp/modules/registry.py", line 386, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/src/openerp/modules/loading.py", line 399, in load_modules
    if not Views._validate_custom_views(cr, SUPERUSER_ID, model):
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/ir/ir_ui_view.py", line 1174, in _validate_custom_views
    return self._check_xml(cr, uid, ids, context=context)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/ir/ir_ui_view.py", line 300, in _check_xml
    self.postprocess_and_fields(cr, uid, view.model, view_doc, view.id, context=context)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/ir/ir_ui_view.py", line 927, in postprocess_and_fields
    self.raise_view_error(cr, user, message, view_id, context)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/addons/base/ir/ir_ui_view.py", line 470, in raise_view_error
    raise AttributeError(message)
AttributeError: Field `journal_id` does not exist
Error context:
View `account.analytic.line.tree`
[view_id: 517, xml_id: n/a, model: account.analytic.line, parent_id: n/a]


I can verify that the field does exist in the model. If I try to remove `journal_id` I get another error saying that `to_invoice` doesn't exist.

It seems that some error might've occurred in the migration, maybe? I'm at loss at what to do. This database is currently in use so I don't want to start deleting things.

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 22
1696
0
Jun 21
36
2
Feb 21
1401
0
Aug 16
1972
2
Nov 15
7381