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
返信
3503
ビュー
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
|
9804 | ||
|
0
4月 21
|
2125 | ||
|
1
6月 19
|
4186 | ||
|
1
8月 25
|
3491 | ||
|
1
3月 25
|
2158 |