Tuesday, July 27, 2021
3 changes · master
Resolved issues and error corrections
This update prevents errors when message history is moved between different business records and some tracked fields do not exist on the destination record. Sensitive tracked values remain hidden from regular users while still being available to administrators, helping keep record activity reliable and appropriately protected.
Original PR description
Purpose
=======
The method 'message_change_thread' transfers the list of the mail
thread messages from an model to another.
So as the mail.tracking.values. But it a mail.tracking.value is
linked to the field 'phone' for example, that doesn't exist on the
other model, this will crash when trying to compute the fields
groups.
In that case obfuscate the mail.tracking.value with the group_sytem,
so that potential group-protected values ('wage' for example) don't
show up on the chatter, but is still available for the super user.
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prEmail campaigns now show a cleaner preview snippet in external mail clients like Gmail and Outlook. This helps recipients see relevant text before opening the email, improving presentation and reducing confusing preview clutter.
Original PR description
Purpose ======= When we send an email, the mail client (gmail, outlook...) compute a mail preview based on the content. Actually, this preview contains a lot of garbage, and it should contain only relevant text. Technical ========= To build this preview, all mail clients read the content of the email. The only way to be able to customize the preview is to add an invisible HTML element at the beginning of the email with the wanted preview text. We add at the end of the preview `‌` (zero-width non-joiner) to fill the end of the preview in order to not have the beginning of the mail at the end of the preview. It doesn't work with simple space as the mail clients trim each HTML element content. Task-2172125
This fix stops Odoo from automatically adding email recipients as followers when that behavior was explicitly turned off. It reduces unwanted subscriptions and notifications across sales, purchasing, portal sharing, invoicing, and website sales workflows.
Original PR description
**Description of the issue/feature this PR addresses:** In action server write `env['purchase.order'].browse(an id).with_context(mail_post_autofollow=False).message_post(self, partner_id=x,body='hello'):` the partner x is add in follower. @mart-e -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr