Fetch same items multiple times from source doc if all qty not processed

This commit is contained in:
Nabin Hait
2017-01-09 15:32:20 +05:30
parent 0dab40f4a1
commit 802b4359b5
3 changed files with 33 additions and 15 deletions

View File

@@ -55,7 +55,8 @@ class Task(Document):
def update_depends_on(self):
depends_on_tasks = ""
for d in self.depends_on:
depends_on_tasks += d.task + ","
if d.task:
depends_on_tasks += d.task + ","
self.depends_on_tasks = depends_on_tasks
def on_update(self):