summaryrefslogtreecommitdiff
path: root/addons/project/wizard/task_delegate.py
diff options
context:
space:
mode:
authorqdp <qdp@tinyerp.com>2009-04-02 14:22:47 +0200
committerqdp <qdp@tinyerp.com>2009-04-02 14:22:47 +0200
commit74a84255ab0a0095bfa3c1dfbe56052086106071 (patch)
treea22537a93e483fa33b558f3df0fd54c4144ace0c /addons/project/wizard/task_delegate.py
parent7219f062947021274567fd3c595c27d429e676b0 (diff)
[IMP] in the tree view My Pending Tasks, put the person we delegated the task to (fields.related).
[IMP] Tasks delegation, when we delegate a task, there is a checkbox: "copy description". Removed this checkbox and replaced by a text field that shows the descritpion of the task. So that you can edit before confirming delegation. bzr revid: qdp@tinyerp.com-20090402122247-zzjtb8dn0xxw2zld
Diffstat (limited to 'addons/project/wizard/task_delegate.py')
-rw-r--r--addons/project/wizard/task_delegate.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/project/wizard/task_delegate.py b/addons/project/wizard/task_delegate.py
index d2919dcb54e..82f9d7e580e 100644
--- a/addons/project/wizard/task_delegate.py
+++ b/addons/project/wizard/task_delegate.py
@@ -31,7 +31,7 @@ ask_form = """<?xml version="1.0" ?>
<field name="user_id" colspan="4"/>
<field name="planned_hours" colspan="4" widget="float_time"/>
<field name="name" colspan="4"/>
- <field name="include_info"/>
+ <field name="new_task_description"/>
<separator string="Validation Task" colspan="4"/>
<field name="planned_hours_me" colspan="4" widget="float_time"/>
<field name="prefix" colspan="4"/>
@@ -42,7 +42,7 @@ ask_fields = {
'name': {'string': 'Delegated Title', 'type': 'char', 'required': 'True', 'size':64, 'help':"New title of the task delegated to the user."},
'prefix': {'string': 'Your Task Title', 'type': 'char', 'required': 'True', 'size':64, 'help':"New title of your own task to validate the work done."},
'user_id': {'string':'Assign To', 'type':'many2one', 'relation': 'res.users', 'required':'True', 'help':"User you want to delegate this task to."},
- 'include_info': {'string':'Copy Description', 'type':'boolean', 'help':"Reinclude the description of the task in the task of the user."},
+ 'new_task_description': {'string':'New Task Description', 'type':'text', '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.", 'required':True},
@@ -60,7 +60,7 @@ class wizard_delegate(wizard.interface):
'remaining_hours': data['form']['planned_hours'],
'parent_id': data['id'],
'state': 'open',
- 'description': data['form']['include_info'] and task.description or '',
+ 'description': data['form']['new_task_description'] or '',
'child_ids': [],
'work_ids': []
})
@@ -87,7 +87,7 @@ class wizard_delegate(wizard.interface):
'planned_hours': task.remaining_hours,
'planned_hours_me': 1.0,
'prefix': _('CHECK: ')+ newname,
- 'include_info': 1,
+ 'new_task_description': task.description,
'state': 'pending'
}