-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
[17.0][MIG] hr_timesheet_task_domain: Migration to 17.0 #721
[17.0][MIG] hr_timesheet_task_domain: Migration to 17.0 #721
Conversation
[ADD] icon.png [UPD] Update hr_timesheet_task_domain.pot
Translated using Weblate (German) Currently translated at 100.0% (1 of 1 strings) Translation: timesheet-12.0/timesheet-12.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_task_domain/de/
It's `project.task.type`, not `project.stage`.
Translated using Weblate (French) Currently translated at 75.0% (3 of 4 strings) Translation: timesheet-14.0/timesheet-14.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_domain/fr/
Currently translated at 100.0% (4 of 4 strings) Translation: timesheet-15.0/timesheet-15.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-15-0/timesheet-15-0-hr_timesheet_task_domain/fr/
Translated using Weblate (Italian) Currently translated at 100.0% (1 of 1 strings) Translation: timesheet-15.0/timesheet-15.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-15-0/timesheet-15-0-hr_timesheet_task_domain/it/
[UPD] Update hr_timesheet_task_domain.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: timesheet-16.0/timesheet-16.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-hr_timesheet_task_domain/
Currently translated at 100.0% (2 of 2 strings) Translation: timesheet-16.0/timesheet-16.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-hr_timesheet_task_domain/it/
Currently translated at 100.0% (2 of 2 strings) Translation: timesheet-16.0/timesheet-16.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-hr_timesheet_task_domain/es/ [UPD] README.rst
Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (2 of 2 strings) Translation: timesheet-16.0/timesheet-16.0-hr_timesheet_task_domain Translate-URL: https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-hr_timesheet_task_domain/pt_BR/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@victoralmau I've updated my review. I noticed that the hr_timesheet_sheet
module explicitly adds a domain in the view, and it works fine in other places. Apologies for the confusion.
What are your thoughts on using the state
field instead of the stage_id.folded
field?
domain="[('project_id', '=', project_id)]" |
IMO that would be totally wrong, the |
This PR has the |
Yes, indeed the move on Odoo is a bit weird, but anyway, let's keep this module with the previous approach. Let's just rephrase the README to mention folded stages instead of open tasks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, checking again the original Odoo PR specs: odoo/odoo#107593, we would twist the expected way of working relying on stages, so let's switch to the states, and we will fill the gap with a module setting the state when changing the stage.
1ebefbc
to
d457fb7
Compare
Changes done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d457fb7
to
c51cdfd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot migration hr_timesheet_task_domain
/ocabot merge nobump
What a great day to merge this nice PR. Let's do it! |
This PR has the |
Congratulations, your PR was merged at 6fbd000. Thanks a lot for contributing to OCA. ❤️ |
Migration to 17.0
Please @pilarvargas-tecnativa and @carlos-lopez-tecnativa can you review it?
@Tecnativa TT51531