summaryrefslogtreecommitdiff
path: root/addons/project_long_term/wizard/compute_tasks_date.py
diff options
context:
space:
mode:
authormra (Open ERP) <mra@tinyerp.com>2010-03-17 12:45:53 +0530
committermra (Open ERP) <mra@tinyerp.com>2010-03-17 12:45:53 +0530
commit838fc7e85c800559d850362cb3607cd43caa0444 (patch)
tree847efff22ead4482078fe2909aca00c973f211cb /addons/project_long_term/wizard/compute_tasks_date.py
parent2319355294ca42ea0b6997eab7f587d1aa037bc0 (diff)
[IMP] project_long_term: Bug fixes and clean
[IMP] project: if the task description is not available it will take task name to send mail to partner on Done button bzr revid: mra@tinyerp.com-20100317071553-3ydcpes6z8f52744
Diffstat (limited to 'addons/project_long_term/wizard/compute_tasks_date.py')
-rw-r--r--addons/project_long_term/wizard/compute_tasks_date.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project_long_term/wizard/compute_tasks_date.py b/addons/project_long_term/wizard/compute_tasks_date.py
index 17a2b90b50b..dbe4739e199 100644
--- a/addons/project_long_term/wizard/compute_tasks_date.py
+++ b/addons/project_long_term/wizard/compute_tasks_date.py
@@ -40,7 +40,7 @@ success_msg = """<?xml version="1.0" ?>
</form>"""
compute_fields = {
- 'project_id': {'string':'Project', 'type':'many2one', 'relation':'project.project', 'required':'True'},
+ 'project_id': {'string':'Project', 'type':'many2one', 'relation':'project.project', 'required':True},
}
class wizard_compute_tasks(wizard.interface):
@@ -118,7 +118,7 @@ class wizard_compute_tasks(wizard.interface):
priorty = priority_dict[each_task.priority]
if each_task.user_id:
for resource in resources:
- if resource.__name__ == each_task.user_id.name:
+ if resource.__name__ == each_task.user_id.name: # check me!!
task = create_tasks(i, hours, priorty, resource)
else:
task = create_tasks(i, hours, priorty)