[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
This commit is contained in:
Jay Vora (OpenERP)
2011-03-03 16:10:25 +05:30
parent bdb758ed35
commit 677eab32c2
+1
View File
@@ -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')}