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:
- CRM
- 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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
8월 25
|
2040 | ||
|
2
8월 25
|
639 | ||
|
2
3월 25
|
1578 | ||
|
1
2월 25
|
2033 | ||
|
1
12월 24
|
2534 |