[FIX] crm : fix bug in phonecall
bzr revid: hmo@tinyerp.com-20100118081429-2fvsofoqly7pue4b
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user