[FIX] Fixed _get_section renamed to _get_default_section.
bzr revid: tde@openerp.com-20120524095102-dtfmnqkpe4xds5mq
This commit is contained in:
parent
f9d801dfd1
commit
1bba3f154f
|
@ -87,8 +87,8 @@ class crm_claim(crm.crm_case, osv.osv):
|
|||
_defaults = {
|
||||
'user_id': crm.crm_case._get_default_user,
|
||||
'partner_id': crm.crm_case._get_default_partner,
|
||||
'email_from':crm.crm_case. _get_default_email,
|
||||
'section_id':crm.crm_case. _get_section,
|
||||
'email_from':crm.crm_case._get_default_email,
|
||||
'section_id':crm.crm_case._get_default_section,
|
||||
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.case', context=c),
|
||||
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
|
||||
|
|
|
@ -100,8 +100,8 @@ class crm_fundraising(crm.crm_case, osv.osv):
|
|||
'active': 1,
|
||||
'user_id': crm.crm_case._get_default_user,
|
||||
'partner_id': crm.crm_case._get_default_partner,
|
||||
'email_from': crm.crm_case. _get_default_email,
|
||||
'section_id': crm.crm_case. _get_section,
|
||||
'email_from': crm.crm_case._get_default_email,
|
||||
'section_id': crm.crm_case._get_default_section,
|
||||
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.case', context=c),
|
||||
'priority': crm.AVAILABLE_PRIORITIES[2][0],
|
||||
'probability': 0.0,
|
||||
|
|
|
@ -84,10 +84,10 @@ class crm_helpdesk(crm.crm_case, osv.osv):
|
|||
'active': lambda *a: 1,
|
||||
'user_id': crm.crm_case._get_default_user,
|
||||
'partner_id': crm.crm_case._get_default_partner,
|
||||
'email_from': crm.crm_case. _get_default_email,
|
||||
'email_from': crm.crm_case._get_default_email,
|
||||
'state': lambda *a: 'draft',
|
||||
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'section_id': crm.crm_case. _get_section,
|
||||
'section_id': crm.crm_case._get_default_section,
|
||||
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.helpdesk', context=c),
|
||||
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue