Erpnext: Convert Task to a tree (NestedSet)

Created on 2 Oct 2017  路  13Comments  路  Source: frappe/erpnext

  • [x] Add tree view for task
  • [ ] Project can also become a task (?)

Task-tree enhancements

  • [ ] renaming should change the subject of task
  • [ ] Task can only depend on tasks of the same parent group
project-management

Most helpful comment

(I don't kwow if this is corret thread)

In "building & construction" is very used use Project management.
_Example: For "Bulding project" normally have N appartments. Each appartment is Sub-Project of Master Project._

What do you think of this?

  • [ ] Duplicate Project
  • [ ] Create a Sub-Project with all task
  • [ ] Link Sub-Project to Master Project.

All 13 comments

(I don't kwow if this is corret thread)

In "building & construction" is very used use Project management.
_Example: For "Bulding project" normally have N appartments. Each appartment is Sub-Project of Master Project._

What do you think of this?

  • [ ] Duplicate Project
  • [ ] Create a Sub-Project with all task
  • [ ] Link Sub-Project to Master Project.

Should there be a feature like - A Task group is given a start and end date and each task within this group should be panned out such that all these tasks are completed before the groups range ( ? )

@Zlash65 first convert into tree. next steps later!

@giuseppelamatrice the tree will solve the issue for multi layout. What you are proposing is to hard code it to one level. And yes we want to set this up for building construction projects!

@nabinhait , So is this not going to be developed in November milestone ?

This is already done and merged in develop

Excellent ! :-)

@Zlash65
I tried with the develop branch but unable to save new project.

Error trace as below

File "/home/ashish/frappe-bench/apps/erpnext/erpnext/projects/doctype/task/task.py", line 64, in update_nsm_model
frappe.utils.nestedset.update_nsm(self)
File "/home/ashish/frappe-bench/apps/frappe/frappe/utils/nestedset.py", line 39, in update_nsm
if not doc.lft and not doc.rgt:
AttributeError: 'Task' object has no attribute 'lft'

@Zlash65 , above issue is solve by running following command
bench update --patch

@ashish-greycube I'd have also suggested a 'bench migrate' since certain fields were added to the doctype itself. Let me know if there are any issues still remaining to tackle.

@Zlash65 , is this fix dependent on any other fix or PR. I mean I have a installation from master branch (not develop branch) and if i apply the 7 file changes done by you , am i good to go? thanks
Is there a way to selectively consume this changes only and not entire develop branch changes

@ashish-greycube Yes it is dependent on other PRs. A lot of refactoring was put into motion after this merge in both frappe as well as erpnext side.

@Zlash65 any idea when this feature will get merged in to master branch ? Eagerly waiting for the same !

Was this page helpful?
0 / 5 - 0 ratings