-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
[10.0][ADD][project_task_dependency] Task dependencies on tasks #202
Conversation
[FIX] Removed bullet point
Please put the module name in singular: |
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.
Functional test
Good to know about https://github.com/OCA/project/tree/8.0/project_recalculate module which is very interesting to calculate dates depending in dependencies.
It might be better to have two many2many fields (predecessor_ids and successor_ids) which uses same table instead of task_ids. |
You could validate not save tasks with the same name, when a task depends on the other. |
What is the best way to review this? I see no runbot link, and pulling the v10 branch does not provide this module. (Sorry - am new with GIT) |
You can pull the code from here: https://github.com/tarteo/project/tree/100_project_task_dependencies |
@bistaray, runbot is available clicking on "Show all checks" |
@pedrobaeza - thanks - I see this now. admin / admin isn't working. How do I discover the credentials? |
@bistaray anyone can change the password. I have launched a rebuilt of the instance to have a fresh one with the default password. |
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.
There is also a pending request to change the module name.
|
||
task_ids = fields.Many2many( | ||
comodel_name='project.task', relation='project_task_project_task_rel', | ||
column1='task_id', column2='dependent_task_id', string='Dependencies', |
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 is not clear to me: the are the Tasks I depend on, or the Tasks the depend on me?
The field name (and string label) should make this clear.
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.
"Dependencies" is clear to me, and I'd assert to native English speakers. See http://www.dictionary.com/browse/dependencies and https://blogs.msdn.microsoft.com/project/2008/07/28/back-to-basics-understanding-task-dependencies/
Another option would be 'Predecessors' (things that come before me)
I remind you that the module names should be in singular form according guidelines. |
Using runbot I was able to add task dependencies to another task. This module only offers the basic data structure. Possibly users may wish a recursion check - to ensure no circular dependencies. I will want a way to visualize dependencies across a project - so would need a field 'parent_id' or equivalent - so I can list tasks in a treeview (and group by parent perhaps?) showing the parent task for each task. @levkar has suggested an improvement that may make visualization easier also. As it stands it works and is respects the design of Odoo, IMHO. |
I've fixed the name and created a mechanism to prevent circular dependencies. |
@dreispt Can you remove the needs fixing tag, please? |
Enables the user to define dependencies (other tasks) of a task.
e.g. task 'building the roof' is dependent on task 'building walls and pillars'