Skip to content

[19.0]]MIG] helpdesk_mgmt_timesheet: Migration to 19.0 - #1102

Open
etobella wants to merge 139 commits into
OCA:19.0from
dixmit:19.0-mig-timesheet
Open

[19.0]]MIG] helpdesk_mgmt_timesheet: Migration to 19.0#1102
etobella wants to merge 139 commits into
OCA:19.0from
dixmit:19.0-mig-timesheet

Conversation

@etobella

@etobella etobella commented Sep 4, 2026

Copy link
Copy Markdown
Member

Takes #999 and adds a small fix to fix the migration

/ocabot migration helpdesk_mgmt_timesheet

dalonsod and others added 30 commits September 4, 2026 09:15
Currently translated at 100.0% (20 of 20 strings)

Translation: helpdesk-13.0/helpdesk-13.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_timesheet/es/
Before this commit, in any view with ticket_id present but unused the onchange would be called and set project and task to False. It was found while trying to integrate project_timesheet_time_control with helpdesk_mgmt_timesheet, where this onchange overrides the results of default_get.

After this commit, if a helpdesk ticket is not present when calling onchange, project and task ids are not reset to False.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: helpdesk-13.0/helpdesk-13.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_timesheet/
Currently translated at 95.0% (19 of 20 strings)

Translation: helpdesk-13.0/helpdesk-13.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_timesheet/hu/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: helpdesk-13.0/helpdesk-13.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_timesheet/
Currently translated at 100.0% (32 of 32 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_timesheet/es_AR/
OCA-git-bot and others added 24 commits September 4, 2026 09:15
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/
Currently translated at 100.0% (39 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/it/
Currently translated at 100.0% (39 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/tr/
Currently translated at 100.0% (39 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/fr/
Currently translated at 100.0% (39 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/es/
…timesheet_table

In Odoo 17.0+ the parent template hr_timesheet.timesheet_table removed the
nbCols variable (now using static colspan='100'). The inheritance was
still trying to increment nbCols, causing a NameError when rendering the
timesheet report with tickets linked to timesheet lines.
Currently translated at 82.0% (32 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/sl/
Currently translated at 100.0% (39 of 39 strings)

Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_timesheet
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_timesheet/sl/
…have access to the project

Use case example:
- Create a user with permissions under Helpdesk and Project > User
- Create a project with visibility set to Invited internal users (private)
- Create a ticket linked to the previously created user and project
- When attempting to access the ticket with the created user, the user should
be able to access it successfully without any errors being displayed

TT63960
@OCA-git-bot OCA-git-bot added series:19.0 mod:helpdesk_mgmt_timesheet Module helpdesk_mgmt_timesheet labels Sep 4, 2026
@etobella

etobella commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

@victoralmau @pedrobaeza I took the last version of 18 as base and just added the migration commit from #999. After that a small fix was necessary.

@etobella etobella closed this Sep 4, 2026
@etobella etobella reopened this Sep 4, 2026

@victoralmau victoralmau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review OK but tests fail

Demo data cannot be used in the tests at this time, so it will need to be created within the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:helpdesk_mgmt_timesheet Module helpdesk_mgmt_timesheet series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.