summaryrefslogtreecommitdiff
path: root/addons/project/wizard/task_delegate.py
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-10-27 14:06:36 +0100
committerFabien Pinckaers <fp@tinyerp.com>2008-10-27 14:06:36 +0100
commit66985dc51136c77190f4cc96bb489e40aa140b55 (patch)
tree185ce3f070280e6797050943a3b66ec195409a2b /addons/project/wizard/task_delegate.py
parent22a16e1b13e95e727e013ff0019d9f1744ec9a18 (diff)
project
bzr revid: fp@tinyerp.com-20081027130636-ano4ijfhclsjfpc0
Diffstat (limited to 'addons/project/wizard/task_delegate.py')
-rw-r--r--addons/project/wizard/task_delegate.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/project/wizard/task_delegate.py b/addons/project/wizard/task_delegate.py
index 54f1d413768..3f613d515ea 100644
--- a/addons/project/wizard/task_delegate.py
+++ b/addons/project/wizard/task_delegate.py
@@ -52,7 +52,7 @@ ask_fields = {
'include_info': {'string':'Copy Description', 'type':'boolean', 'help':"Reinclude the description of the task in the task of the user."},
'planned_hours': {'string':'Planned Hours', 'type':'float', 'widget':'float_time', 'help':"Estimated time to close this task by the delegated user."},
'planned_hours_me': {'string':'Hours to Validate', 'type':'float', 'widget':'float_time', 'help':"Estimated time for you to validate the work done by the user to whom you delegate this task."},
- 'state': {'string':'Validation State', 'type':'selection', 'selection': [('pending','Pending'),('done','Done')], 'help':"New state of your own task. Pending will be reopened automatically when the delegated task is closed."},
+ 'state': {'string':'Validation State', 'type':'selection', 'selection': [('pending','Pending'),('done','Done')], 'help':"New state of your own task. Pending will be reopened automatically when the delegated task is closed.", 'required':True},
}
class wizard_delegate(wizard.interface):
@@ -69,7 +69,8 @@ class wizard_delegate(wizard.interface):
'parent_id': data['id'],
'state': 'open',
'description': data['form']['include_info'] and task.description or '',
- 'child_ids': []
+ 'child_ids': [],
+ 'work_ids': []
})
task_obj.write(cr, uid, data['id'], {
'remaining_hours': data['form']['planned_hours_me'],