Skip to content

Conversation

@Puriboonsiri
Copy link

Issue
When enabling Task Logs in Settings → Project → Time Management, Odoo raises an error and the feature cannot be activated.

Steps to Reproduce

  1. Go to Settings.
  2. Open the Project tab.
  3. Under Time Management, enable Task Logs (Track time spent on projects and tasks).

Support info

  • Odoo version: 18.0
  • Modules: project, timesheet, project_timesheet_holidays (if installed)
  • User access: Settings → Project → Time Management

Copy link

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this fix, the issue is resolved, but from my point of view the new field does not make sense. The field 'account_department_id' was created in account.analytic.line to relate the department_id field from the account.analytic.account model via the account_id field defined in the same model. In this case, it is pointing directly to the 'department_id' field from timesheet.analysis.report, without taking into account any relation with account.analytic.account.

The problem is that in version 17.0, Odoo modified the view hr_timesheet_report_search in hr_timesheet/report/hr_timesheet_report_view.xml, removing the creation of a new view to establish an inherited view from analytic. This makes it sensitive to modifications in the analytic view, which must be propagated to the timesheet.analysis.report model.

Unfortunately, I don't have an alternative solution to help you. Anyway, I will mark it as Approved, because I have tested it in Runboat, when some people from the community agree with the decision taken.

@luisDIXMIT
Copy link

By other hand, you should squash commits.

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

Successfully merging this pull request may close these issues.

2 participants