[FIX] crm: opportunity should define default type

bzr revid: odo@openerp.com-20100625125824-44bkoiwpkwvp2013
This commit is contained in:
Olivier Dony
2010-06-25 14:58:24 +02:00
parent f7f77b30ad
commit c3ac979a28
+2 -1
View File
@@ -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):