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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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
Any update?
Is this problem solved? More information here: https://101games.io/solar-smash
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Mar 25
|
1209 | ||
|
1
Feb 25
|
1436 | ||
|
1
Dec 24
|
1953 | ||
|
0
Dec 24
|
1572 | ||
|
2
Sep 24
|
1422 |