[FIX] crm : fix bug in phonecall

bzr revid: hmo@tinyerp.com-20100118081429-2fvsofoqly7pue4b
This commit is contained in:
Harry (Open ERP)
2010-01-18 13:44:29 +05:30
parent c25b354ed7
commit b2a33878de
+5
View File
@@ -81,6 +81,11 @@ class crm_phonecall(osv.osv):
'date_closed': fields.datetime('Closed', readonly=True),
'opportunity_id':fields.many2one ('crm.opportunity', 'Opportunity'),
}
def onchange_categ_id(self, cr, uid, ids, categ, context={}):
if not categ:
return {'value':{}}
cat = self.pool.get('crm.phonecall.categ').browse(cr, uid, categ, context).probability
return {'value':{'probability':cat}}
crm_phonecall()