[merge] from trunk

bzr revid: xmo@tinyerp.com-20100118084817-e0s58j9o3emkxgrf
This commit is contained in:
Xavier Morel
2010-01-18 09:48:17 +01:00
+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()