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

Compatibility issue of module OCA/helpdesk_mgmt_timesheet with OCA/project_timesheet_time_control #662

Open
abhinavvaidya-tsd opened this issue Nov 28, 2024 · 0 comments
Labels

Comments

@abhinavvaidya-tsd
Copy link

abhinavvaidya-tsd commented Nov 28, 2024

Compatibility issue of module OCA/helpdesk_mgmt_timesheet with OCA/project_timesheet_time_control

Module

The name of the module that has a bug.
helpdesk_mgmt_timesheet

Describe the bug

When trying to enter Timesheet via Timesheets / Timesheets / Start Work I get following error

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/http.py", line 1815, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/addons/website/models/ir_http.py", line 237, in _dispatch
response = super()._dispatch(endpoint)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/addons/web/controllers/dataset.py", line 42, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/bitnami/odoo/lib/odoo-16.0.post20230915-py3.10.egg/odoo/models.py", line 6407, in onchange
defaults = self.default_get(missing_names)
File "/home/custom_addons/TSD-ERP-CE/project_timesheet_time_control/wizards/hr_timesheet_switch.py", line 165, in default_get
inherited = self._closest_suggestion()
File "/home/custom_addons/TSD-ERP-CE/helpdesk_mgmt_timesheet/wizards/hr_timesheet_switch.py", line 16, in _closest_suggestion
and self.env.context["active_model"] == "helpdesk.ticket"
KeyError: 'active_model'

The above server error caused the following client error:
null

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Install the module helpdesk_mgmt_timesheet on a db which has already project_timesheet_time_control installed.
  2. Go to Timesheets / Timesheet / Start Work
  3. Error Appers

Expected behavior
Error should not appear and I am able to get the wizard where I can enter the Task and start work.

Additional context
Hosted on GCP Linux VM on Odoo v16

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

No branches or pull requests

1 participant