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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
3476
查看
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
|
9779 | ||
|
0
4月 21
|
2114 | ||
|
1
6月 19
|
4164 | ||
|
1
8月 25
|
3474 | ||
|
1
3月 25
|
2133 |