Skip to content

[19.0][MIG] hr_timesheet_portal: Migration to 19.0#878

Open
innovara wants to merge 16 commits intoOCA:19.0from
innovara:19.0-mig-hr_timesheet_portal
Open

[19.0][MIG] hr_timesheet_portal: Migration to 19.0#878
innovara wants to merge 16 commits intoOCA:19.0from
innovara:19.0-mig-hr_timesheet_portal

Conversation

@innovara
Copy link
Copy Markdown
Contributor

This PR migrates hr_timesheet_portal to 19.0.

Changes Made

Security Model Updates:

  • Migrated group categorization from the category_id field on res.groups to the new res.groups.privilege model, which is the standard approach in Odoo 19.0
  • The "Editable timesheets" privilege is now categorized under "Website" in the user permissions interface

Field and Domain Updates:

  • Updated the employee view domain to use group_ids instead of the removed groups_id field on res.users
  • Corrected domain syntax from %(...)s to %(...)d for XML ID reference formatting
  • Changed domain operator from = to in to query the Many2many relationship

Template Fixes:

  • Updated xpath expressions to include show_portal_timesheets condition to match upstream template changes in hr_timesheet.portal_my_task

Documentation Updates:

  • Enhanced configuration instructions to clarify both methods of adding users to the "Editable timesheets" group (via user form or groups management)

These changes ensure the module functions correctly in Odoo 19.0 while maintaining backward compatibility in behavior and user experience.

@hbrunn @CRogos @yannoliv @BhaveshHeliconia your feedback would be really appreciated as always.

hbrunn and others added 16 commits February 16, 2026 04:56
Currently translated at 100.0% (4 of 4 strings)

Translation: timesheet-12.0/timesheet-12.0-hr_timesheet_portal
Translate-URL: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_portal/it/
Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
Add USAGE.md and screenshots to improve documentation.

Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
…syntax

- Add inheritance from group_hr_timesheet_portal to base.group_system.
- Update security XML and record rules to Odoo 18 Command syntax.

Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
- Migrate group categorization to res.groups.privilege model
- Update res.users field reference from groups_id to group_ids
- Update domain syntax to Odoo 19 format
- Fix template xpath expressions to match upstream changes
- Update documentation to reflect new UI configuration options

Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
Copy link
Copy Markdown
Contributor

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Nice, clean 19.0 migration. CI all green. LGTM

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.

4 participants