[FIX] crm: Reset the 'Draft' flag for the opportunities and leads
bzr revid: stephane@openerp.com-20100422115535-4ou5x31qc45jlbam
This commit is contained in:
parent
db5a669c55
commit
f3aa346896
|
@ -27,7 +27,7 @@ import time
|
|||
import mx.DateTime
|
||||
|
||||
AVAILABLE_STATES = [
|
||||
('draft','New'),
|
||||
('draft','Draft'),
|
||||
('open','Open'),
|
||||
('cancel', 'Lost'),
|
||||
('done', 'Converted'),
|
||||
|
@ -190,6 +190,7 @@ class crm_opportunity(osv.osv):
|
|||
_defaults = {
|
||||
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.opportunity', context=c),
|
||||
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
|
||||
'state' : 'draft',
|
||||
}
|
||||
|
||||
def action_makeMeeting(self, cr, uid, ids, context=None):
|
||||
|
|
|
@ -183,6 +183,7 @@ class email_parser(object):
|
|||
'email_cc': msg_cc,
|
||||
'user_id': False,
|
||||
'description': message['body'],
|
||||
'state' : 'draft',
|
||||
}
|
||||
data.update(self.partner_get(msg_from))
|
||||
|
||||
|
|
Loading…
Reference in New Issue