From 038d246b289d6c0334a0a5adc3fc9de8638d08b5 Mon Sep 17 00:00:00 2001 From: Jigar Amin Date: Mon, 7 Mar 2011 16:36:47 +0530 Subject: [PATCH 1/2] [BUG/FIX] peoject_issue : Assgined to readonly lp bug: https://launchpad.net/bugs/725736 fixed bzr revid: jam@tinyerp.com-20110307110647-bucrgruecq0wi2zo --- addons/project_issue/project_issue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index aaaff37305e..2a02309e2fa 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -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, 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, readonly=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', \ From 6f4eaf868e4949a269d8ff1335dab203e2d722dc Mon Sep 17 00:00:00 2001 From: Jigar Amin Date: Wed, 9 Mar 2011 10:06:22 +0530 Subject: [PATCH 2/2] [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 --- addons/project_issue/project_issue.py | 2 +- addons/project_issue/project_issue_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 2a02309e2fa..aaaff37305e 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -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', \ diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index 23a361b0ff9..36c0e4ba82f 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -189,7 +189,7 @@