Skip to content
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

Merged
merged 4 commits into from
Dec 5, 2016
Merged

[10.0][ADD][project_task_dependency] Task dependencies on tasks #202

merged 4 commits into from
Dec 5, 2016

Conversation

tarteo
Copy link
Member

@tarteo tarteo commented Nov 3, 2016

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'

[FIX] Removed bullet point
@pedrobaeza
Copy link
Member

Please put the module name in singular: project_task_dependency according guidelines https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#modules

@rafaelbn rafaelbn added this to the 10.0 milestone Nov 3, 2016
Copy link
Member

@rafaelbn rafaelbn left a 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.

@levkar
Copy link

levkar commented Nov 4, 2016

It might be better to have two many2many fields (predecessor_ids and successor_ids) which uses same table instead of task_ids.

@susport
Copy link

susport commented Nov 5, 2016

You could validate not save tasks with the same name, when a task depends on the other.

@bistaray
Copy link

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)

@jcdrubay
Copy link

You can pull the code from here: https://github.com/tarteo/project/tree/100_project_task_dependencies

@pedrobaeza
Copy link
Member

@bistaray, runbot is available clicking on "Show all checks"

@bistaray
Copy link

@pedrobaeza - thanks - I see this now. admin / admin isn't working. How do I discover the credentials?

@pedrobaeza
Copy link
Member

@bistaray anyone can change the password. I have launched a rebuilt of the instance to have a fresh one with the default password.

Copy link
Member

@dreispt dreispt left a 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',
Copy link
Member

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.

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)

@pedrobaeza
Copy link
Member

I remind you that the module names should be in singular form according guidelines.

@bistaray
Copy link

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.

@tarteo
Copy link
Member Author

tarteo commented Nov 29, 2016

I've fixed the name and created a mechanism to prevent circular dependencies.

@tarteo tarteo changed the title [10.0][ADD][project_task_dependencies] Task dependencies on tasks [10.0][ADD][project_task_dependency] Task dependencies on tasks Nov 30, 2016
@tarteo
Copy link
Member Author

tarteo commented Dec 5, 2016

@dreispt Can you remove the needs fixing tag, please?

@dreispt dreispt merged commit 7f78c56 into OCA:10.0 Dec 5, 2016
PCatinean pushed a commit to PCatinean/project that referenced this pull request May 7, 2018
)

* [ADD] project_task_dependencies

[FIX] Removed bullet point

* [FIX] Module name and circular depedencies

* [FIX] NewId issue

* [FIX] Test names
AdriaGForgeFlow pushed a commit to ForgeFlow/project that referenced this pull request Jan 22, 2019
)

* [ADD] project_task_dependencies

[FIX] Removed bullet point

* [FIX] Module name and circular depedencies

* [FIX] NewId issue

* [FIX] Test names
@tarteo tarteo deleted the 100_project_task_dependencies branch October 30, 2019 15:20
manuelcalerosolis pushed a commit to Tecnativa/project that referenced this pull request Feb 11, 2020
)

* [ADD] project_task_dependencies

[FIX] Removed bullet point

* [FIX] Module name and circular depedencies

* [FIX] NewId issue

* [FIX] Test names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants