hi,
I send an emails from odoo but i dont want them to be visible in the chatter section of the record. The sending part is fine, but i did not find a solution to ignore it in the chatter. i hope i dont have to dig through all the source.
thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi,
I send an emails from odoo but i dont want them to be visible in the chatter section of the record. The sending part is fine, but i did not find a solution to ignore it in the chatter. i hope i dont have to dig through all the source.
thanks.
i found a solution by hiding all messages of type email. i overriden the following in mail.message:
def _search(self, args, offset=0, limit=None, order=None, count=False, access_rights_uid=None):
args.append(('message_type', '!=', 'email'))
res = super(LrzMessage, self)._search(args, offset, limit, order, count, access_rights_uid)
return res
Hello.
To remove link between message and chatter you can remove the res_id (Related Document ID) property of the email after sending.
If email has no res_id it is not showed in chatter.
thank you. i will have to try if it somehow works if there is a report attached.
it seems that i need res_id for the report.
does someone know in which model a mail.message is created from the email?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Chatter looks weird in 18.0
Solved
|
|
2
Dec 24
|
292 | |
|
0
Nov 24
|
78 | ||
|
3
May 24
|
565 | ||
|
3
May 24
|
2875 | ||
|
1
Feb 24
|
2214 |