bzr revid: hmo@tinyerp.com-20100402120216-rhjcihck33zefoi4
This commit is contained in:
Harry (Open ERP) 2010-04-02 17:32:16 +05:30
commit fc90459495
2 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,6 @@ class crm_case(osv.osv):
'partner_address_id': _get_default_partner_address,
'email_from': _get_default_email,
'state': lambda *a: 'draft',
'date_deadline': lambda *a: (datetime.today() + timedelta(days=3)).strftime('%Y-%m-%d %H:%M:%S'),
'section_id': _get_section,
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.case', context=c),
}

View File

@ -106,6 +106,7 @@ class crm_opportunity(osv.osv):
'date_closed': fields.datetime('Closed', readonly=True),
'user_id': fields.many2one('res.users', 'Salesman'),
'phone': fields.char("Phone", size=64),
'date_deadline': fields.date('Expected Closing'),
'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True,
help='The state is set to \'Draft\', when a case is created.\
\nIf the case is in progress the state is set to \'Open\'.\