diff --git a/addons/crm/crm_opportunity.py b/addons/crm/crm_opportunity.py index 0adbf2f2489..349bec933fa 100644 --- a/addons/crm/crm_opportunity.py +++ b/addons/crm/crm_opportunity.py @@ -109,7 +109,8 @@ class crm_opportunity(osv.osv): _defaults = { 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.lead', context=c), - 'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0], + 'priority': crm.AVAILABLE_PRIORITIES[2][0], + 'type': 'opportunity', } def action_makeMeeting(self, cr, uid, ids, context=None):