Merged
Conversation
Fixes
```
2023-01-02 10:00:00,000 347 ERROR odoo odoo.addons.mail_post_defer.tests.test_mail: ERROR: MessagePostCase.test_model_without_threading
Traceback (most recent call last):
File "/__w/mail/mail/mail_post_defer/tests/test_mail.py", line 213, in test_model_without_threading
self.assertNoMail(self.partner_employee | self.partner_portal)
File "/opt/odoo/addons/mail/tests/common.py", line 753, in assertNoMail
self.assertNotSentEmail(recipients=recipients, message_id=mail_message.message_id)
AttributeError: 'NoneType' object has no attribute 'message_id'
```
Regression of odoo/odoo#230766, fix proposed in odoo/odoo#255720.
Currently translated at 100.0% (5 of 5 strings) Translation: social-16.0/social-16.0-mail_layout_force Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_layout_force/it/
This commit improves the process of replacing the layout when sending an email without selecting an email template.
Override default_get to ensure template's email_layout_xmlid takes priority over context defaults when mail composer is initialized. The compute method is not triggered at initialization when a default value exists, so we need to explicitly override it in default_get. Also clarify in documentation when to use Layout Mapping for direct message_post calls (e.g., invoice send actions).
…le user and model IDs
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: mail-18.0/mail-18.0-mail_activity_team Translate-URL: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_activity_team/
sireko
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.