-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
[MIG] [17.0] project_task_personal_stage_auto_fold #1344
base: 17.0
Are you sure you want to change the base?
[MIG] [17.0] project_task_personal_stage_auto_fold #1344
Conversation
This module adds the behavior to change the Personal Stage of the task to the first Folded one when the task reachs an stage with "Mark as Done". If the Personal Stage is already folded, does nothing. Simplifies the behavior of closing a task, go back to Personal Stages and move it to the Pesonal Done stage. Chooses Personal Stages with the same name before Closing stages or Folded stages.
…riginal test fail By inheriting the tests of project module one of the test defined in the original module is failing, by copying the setUpClass we avoid this error.
Currently translated at 100.0% (1 of 1 strings) Translation: project-16.0/project-16.0-project_task_personal_stage_auto_fold Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_task_personal_stage_auto_fold/hr/
Currently translated at 100.0% (1 of 1 strings) Translation: project-16.0/project-16.0-project_task_personal_stage_auto_fold Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_task_personal_stage_auto_fold/it/
Currently translated at 100.0% (1 of 1 strings) Translation: project-16.0/project-16.0-project_task_personal_stage_auto_fold Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_task_personal_stage_auto_fold/pt_BR/
Currently translated at 100.0% (1 of 1 strings) Translation: project-16.0/project-16.0-project_task_personal_stage_auto_fold Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_task_personal_stage_auto_fold/es/
8cebca3
to
154ea2f
Compare
/ocabot migration project_task_personal_stage_auto_fold |
@@ -25,13 +30,12 @@ def _fold_personal_stage_task(self): | |||
) | |||
.sorted(lambda ptt: ptt.fold, reverse=True) | |||
) | |||
if not folded_stages: | |||
return |
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.
Is there always a folded stage?
# Allow to find personal stage with same name as shared stage | ||
stage_by_name = {stage.name: stage for stage in folded_stages} | ||
# Apply best matching personal stage | ||
default_stage = folded_stages[0] |
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.
This will fail when the user deleted all the folded stages, probably just return when no folded_stages are found
default_stage = folded_stages[0] | |
default_stage = folded_stages[0] |
No description provided.