Is it possible to change the sender address for all emails sent via chatter of a certain model? If so, how can I do it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
3482
화면
Fixed:
class TheModel(models.Model):
...
_inherit = ['mail.thread', 'mail.activity.mixin']
...
@api.multi
@api.returns('self', lambda value: value.id)
def message_post(self, body='', subject=None, message_type='notification', **kwargs):
kwargs['email_from'] = "REALMAIL <realmail@domain.com>"
return super(TheModel, self).message_post(body, subject, message_type, **kwargs)
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
3
7월 21
|
9787 | ||
|
0
4월 21
|
2117 | ||
|
1
6월 19
|
4170 | ||
|
1
8월 25
|
3476 | ||
|
1
3월 25
|
2142 |