Tuesday, July 27, 2021
8 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-prEvent dates are now displayed using the date format for each user's selected language. This makes event information clearer for international users and avoids confusion caused by unfamiliar date formats.
Original PR description
Before this Commit, dates was not formatted based on user's lang. With this commit, we use `format_date` to correctly format dates.. 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-pr
The website contact form now leaves fields blank when a logged-in user's profile is missing information. This prevents customers from seeing the word "false" auto-filled in fields, making the form clearer and more professional.
Original PR description
Description of the issue/feature this PR addresses: On the 'Contact us' form of the 'website' module, the client can auto-fill the fields with the 'false' text string when the logged partner has some missing values. Current behavior before PR: The client will issue an RPC call to retrieve the values of the logged partner. The server will then load the data and set all missing values to 'false'. The client will then automatically fill the form with the loaded values. Desired behavior after PR is merged: The client will replace the falsy values with an empty string before updating the form fields. Task id: 2610948 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Email 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
Action buttons in the Project forecast Gantt view now work correctly when sample data is shown. This prevents error screens when users explore the view with demo content, making the experience smoother and more reliable.
Original PR description
Before this commit, clicking on the action button of some rows when the sample data was displayed lead to a traceback, as shown in [this link](https://www.awesomescreenshot.com/video/4623651?key=ee57c75d599e11869efd82afa02bc675). This bug was introduced by the PR #18819. This commit reverts the behaviour of the sample data in this particular view. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A manufacturing work order test was updated to reflect that manufacturing orders are now locked by default. This keeps automated checks aligned with current behavior and helps prevent false test failures in future updates.
Original PR description
Fixing test due to community fix that now makes MOs locked by default. Task: 2518523 COM PR: odoo/odoo#73939 Upgrade PR: odoo/upgrade#2655
This update removes a leftover customization that pointed to code no longer present in the core product. It helps avoid potential errors or maintenance issues in accounting screens without changing day-to-day functionality.
Original PR description
This class has been removed in commit odoo/odoo@d201a393571481a26a1d3e046d35f521ec0a131e