Skip to content

[19.0][MIG] hr_timesheet_sheet: Migration to 19.0#941

Open
aurelien-tempo wants to merge 192 commits into
OCA:19.0from
aurelien-tempo:19.0-mig-hr_timesheet_sheet
Open

[19.0][MIG] hr_timesheet_sheet: Migration to 19.0#941
aurelien-tempo wants to merge 192 commits into
OCA:19.0from
aurelien-tempo:19.0-mig-hr_timesheet_sheet

Conversation

@aurelien-tempo

Copy link
Copy Markdown

Migrate hr_timesheet_sheet from 18.0 to 19.0.
Depends on OCA/web#3578, temporarily pinned through test-requirements.txt.
Migration changes are split in small commits for easier review. I will squash every one of my commits when the PR will be validated.

MiquelRForgeFlow and others added 30 commits June 17, 2026 16:01
* [10.0] hr_timesheet_sheet

* [11.0][MIG] hr_timesheet_sheet

* [REMOVE] hr_timesheet.sheet.account

* [REMOVE] 'new' state

* [ADD] Tests

* [UPD] Adapt to multicompany

* [ADD] Add more tests (include multicompany tests)

* [FIX] project_task_stage_allow_timesheet: show error message only if task

* [ADD] Migration scripts to v11
Currently translated at 98.9% (88 of 89 strings)

Translation: hr-timesheet-11.0/hr-timesheet-11.0-hr_timesheet_sheet
Translate-URL: https://translation.odoo-community.org/projects/hr-timesheet-11-0/hr-timesheet-11-0-hr_timesheet_sheet/ja/
Currently translated at 100,0% (89 of 89 strings)

Translation: hr-timesheet-11.0/hr-timesheet-11.0-hr_timesheet_sheet
Translate-URL: https://translation.odoo-community.org/projects/hr-timesheet-11-0/hr-timesheet-11-0-hr_timesheet_sheet/pt_BR/
…ay into this module, which adds a configuration to select the week start day.
If you run tests on Sunday, test_4 was not prepared for it, as next day is Monday,
which belongs to other week, and thus not included in same timesheet. With this,
we cover that case, decreasing one day instead of adding it.
RicardCForgeFlow and others added 21 commits June 17, 2026 16:05
- Remove max-height to let matrix fill available space
- Bold non-zero hours, grey out zero values
- Highlight today's column in blue
When you are creating the sheet, it automatically creates sheet lines for the existing analytic lines. But if you change the sheet period before saving, don't delete those analytic lines.
Currently translated at 100.0% (183 of 183 strings)

Translation: timesheet-18.0/timesheet-18.0-hr_timesheet_sheet
Translate-URL: https://translation.odoo-community.org/projects/timesheet-18-0/timesheet-18-0-hr_timesheet_sheet/ca/
Currently translated at 21.8% (40 of 183 strings)

Translation: timesheet-18.0/timesheet-18.0-hr_timesheet_sheet
Translate-URL: https://translation.odoo-community.org/projects/timesheet-18-0/timesheet-18-0-hr_timesheet_sheet/sl/
@OCA-git-bot OCA-git-bot added series:19.0 mod:hr_timesheet_sheet Module hr_timesheet_sheet labels Jun 22, 2026
@aurelien-tempo aurelien-tempo mentioned this pull request Jun 22, 2026
23 tasks
@aurelien-tempo aurelien-tempo force-pushed the 19.0-mig-hr_timesheet_sheet branch from 8496b2b to 3fe49e0 Compare June 22, 2026 15:02
@aurelien-tempo aurelien-tempo force-pushed the 19.0-mig-hr_timesheet_sheet branch from 0b7e7e0 to 49baa49 Compare June 24, 2026 07:20
Comment on lines +53 to +54
self.env["hr.employee"]
.sudo()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Not sure here if I should do it like this or use self.env["hr.employee.public"] instead.

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

Labels

mod:hr_timesheet_sheet Module hr_timesheet_sheet series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.