[FIX] crm_lead : context=None and used in write method

bzr revid: tfr@openerp.com-20101220093027-k3zojd2l115p0mf9
This commit is contained in:
Thibault Francois
2010-12-20 10:30:27 +01:00
parent 8ec2a5e6ea
commit 1b44e7e0cd
+3
View File
@@ -289,6 +289,9 @@ class crm_lead(crm_case, osv.osv):
return value
def write(self, cr, uid, ids, vals, context=None):
if not context:
context = {}
if 'date_closed' in vals:
return super(crm_lead,self).write(cr, uid, ids, vals, context=context)