Where can I change in code, so that email_from is changed when I send mail from chatter?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
Hi,
You can customize the sender email (email_from) for chatter messages by overriding the message_post method. For example:
class MailThread(models.AbstractModel):
_inherit = 'mail.thread'
@api.model
def message_post(self, **kwargs):
if not kwargs.get('email_from'):
kwargs['email_from'] = 'custom_email@example.com' # Set your custom email address
return super().message_post(**kwargs)
This will set a custom sender email if one is not provided when posting a message.
Hope it helps
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
3月 25
|
927 | ||
|
1
2月 25
|
1083 | ||
|
1
12月 24
|
1636 | ||
|
0
12月 24
|
1375 | ||
|
2
9月 24
|
1251 |