From 677eab32c26ac2010e527b399d3cd28a2f4f9b8e Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Thu, 3 Mar 2011 16:10:25 +0530 Subject: [PATCH] [FIX] CRM : Corrected case_close() method in order to avoid variable reference Error. (Ref : Case 4389) NOte that the original problem comes due to web which allows ids=[] on the call of the method bzr revid: jvo@tinyerp.com-20110303104025-dlp80uwnc0ukvos7 --- addons/crm/crm_phonecall.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index 2b2066f6eb2..f4e20f5d3fc 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -110,6 +110,7 @@ class crm_phonecall(crm_case, osv.osv): @param ids: List of case Ids @param *args: Tuple Value for additional Params """ + res = True for phone in self.browse(cr, uid, ids): phone_id= phone.id data = {'date_closed': time.strftime('%Y-%m-%d %H:%M:%S')}