[FIX] crm_helpdesk: removed a default value; added a chatter method.
bzr revid: tde@openerp.com-20120530084714-x21qtmiunzf7i2ny
This commit is contained in:
parent
c0cc4cc7ac
commit
3b7ba480fc
|
@ -87,7 +87,6 @@ class crm_helpdesk(base_state, osv.osv):
|
||||||
'email_from': lambda s, cr, uid, c: s._get_default_email(cr, uid, c),
|
'email_from': lambda s, cr, uid, c: s._get_default_email(cr, uid, c),
|
||||||
'state': lambda *a: 'draft',
|
'state': lambda *a: 'draft',
|
||||||
'date': lambda *a: fields.datetime.now(),
|
'date': lambda *a: fields.datetime.now(),
|
||||||
'section_id': lambda s, cr, uid, c: s._get_default_section_id(cr, uid, c),
|
|
||||||
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.helpdesk', context=c),
|
'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],
|
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
|
||||||
}
|
}
|
||||||
|
@ -142,5 +141,12 @@ class crm_helpdesk(base_state, osv.osv):
|
||||||
res = self.write(cr, uid, [case.id], values, context=context)
|
res = self.write(cr, uid, [case.id], values, context=context)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
# ******************************
|
||||||
|
# OpenChatter
|
||||||
|
# ******************************
|
||||||
|
|
||||||
|
def case_get_note_msg_prefix(self, cr, uid, id, context=None):
|
||||||
|
return 'Helpdesk'
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue