[FIX] project_issue : assigned_to field should read only until the field of the task is filled, improvemnts suggested by tfr

bzr revid: jam@tinyerp.com-20110309043622-uh2v02zp9mvboe0t
This commit is contained in:
Jigar Amin
2011-03-09 10:06:22 +05:30
parent 038d246b28
commit 6f4eaf868e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ class project_issue(crm.crm_case, osv.osv):
method=True, multi='day_open', type="float", store=True),
'day_close': fields.function(_compute_day, string='Days to Close', \
method=True, multi='day_close', type="float", store=True),
'assigned_to': fields.related('task_id', 'user_id', string = 'Assigned to', type="many2one", relation="res.users", store=True, readonly=True, help='This is the current user to whom the related task have been assigned'),
'assigned_to': fields.related('task_id', 'user_id', string = 'Assigned to', type="many2one", relation="res.users", store=True, help='This is the current user to whom the related task have been assigned'),
'working_hours_open': fields.function(_compute_day, string='Working Hours to Open the Issue', \
method=True, multi='working_days_open', type="float", store=True),
'working_hours_close': fields.function(_compute_day, string='Working Hours to Close the Issue', \
+1 -1
View File
@@ -189,7 +189,7 @@
<button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage"/>
<field name="version_id" widget="selection"/>
<field name="user_id"/>
<field name="assigned_to"/>
<field name="assigned_to" attrs="{'readonly':[('task_id','=',False)]}"/>
<field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
<field name="state"/>
<button name="case_cancel" string="Cancel" states="draft,open,pending" type="object" icon="gtk-cancel"/>