hi,
i need help to disable altogether or edit the system notification messages that are sent out when a new user is made in Openerp
http://snag.gy/k9f3i.jpg
Is there a way to edit this message
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi,
i need help to disable altogether or edit the system notification messages that are sent out when a new user is made in Openerp
http://snag.gy/k9f3i.jpg
Is there a way to edit this message
Thanks
thanks that helps. I would also like to know if system notifications can be disabled altogether
Hello,
You have to customize code.
Just create new module and write below code.
class hr_employee(osv.osv):
_inherit = 'hr.employee'
def _broadcast_welcome(self, cr, uid, employee_id, context=None):
if not context: context={}
context.update({'from_broadcast':True})
return super(hr_employee,self)._broadcast_welcome(cr, uid, employee_id, context=context)
@api.cr_uid_ids_context
def message_post(self, cr, uid, thread_id, body='', subject=None, type='notification', subtype=None, parent_id=False, attachments=None, context=None, **kwargs):
if context.get('from_broadcast'):
body = 'Your new message....................'
return super(hr_employee, self).message_post(cr, uid, thread_id, body=body, subject=subject, type=type, subtype=subtype, parent_id=parent_id, attachments=attachments, context=context, **kwargs)
May be this will useful you.
Thanks.
Shamji
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 11 17
|
3527 | ||
|
1
thg 1 24
|
4884 | ||
|
1
thg 8 25
|
79 | ||
|
2
thg 7 25
|
2708 | ||
|
1
thg 6 25
|
1191 |