Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying May 8th's patch breaks human resource module #27

Open
beke opened this issue May 10, 2019 · 3 comments
Open

Applying May 8th's patch breaks human resource module #27

beke opened this issue May 10, 2019 · 3 comments

Comments

@beke
Copy link

beke commented May 10, 2019

It seems last patch deleted or renamed a column in database, when applying it, human resource module will give "view n/a" error.
Upgrading the hrms core module will fix the issue but it will mess up the menu, attendance, report etc. will show up on main menu instead.

@CybroOdoo
Copy link
Owner

Could you please provide more details about the error?

@beke
Copy link
Author

beke commented May 10, 2019

When I applied the Bug fix patch from 2 days and restarted the odoo service, I got the following error when trying to acces Human Resource module :
Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 939, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 745, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 718, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo/odoo/models.py", line 1376, in load_views
for [v_id, v_type] in views
File "/opt/odoo/odoo/odoo/models.py", line 1376, in
for [v_id, v_type] in views
File "/opt/odoo/odoo/addons/mail/models/mail_thread.py", line 410, in fields_view_get
res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/opt/odoo/odoo/odoo/models.py", line 1462, in fields_view_get
xarch, xfields = View.postprocess_and_fields(self.name, etree.fromstring(result['arch']), view_id)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1084, in postprocess_and_fields
fields_def = self.postprocess(model, node, view_id, False, fields)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 909, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 909, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 909, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
[Previous line repeated 5 more times]
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 869, in postprocess
).postprocess_and_fields(field.comodel_name, f, view_id)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1063, in postprocess_and_fields
self.raise_view_error(
('Model not found: %(model)s') % dict(model=model), view_id)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
raise ValueError(message)
ValueError: Model not found: None

Error context:
View n/a
[view_id: n/a, xml_id: n/a, model: n/a, parent_id: n/a]

@beke
Copy link
Author

beke commented May 10, 2019

And after I got the error, I tried upgrading the "Open HRMS employee info" module. After the upgrade I can access the "human resource" module but the main menu on the left was broken, meaning there was lot menu options that weren't there before, such as "Leaves config", "Settings", "Reports", "Payroll", "Expenses" etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants