Skip to content

Fork Sync Branch 18.0#17

Merged
btl-bot merged 36 commits intoBTLzdravtech:18.0from
OCA:18.0
Apr 2, 2026
Merged

Fork Sync Branch 18.0#17
btl-bot merged 36 commits intoBTLzdravtech:18.0from
OCA:18.0

Conversation

@btl-bot
Copy link
Copy Markdown

@btl-bot btl-bot commented Apr 2, 2026

No description provided.

StefanRijnhart and others added 30 commits December 8, 2025 12:33
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.
Signed-off-by pedrobaeza
Signed-off-by StefanRijnhart
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).
Signed-off-by StefanRijnhart
Signed-off-by StefanRijnhart
oca-ci and others added 6 commits April 1, 2026 06:59
Copy link
Copy Markdown

@sireko sireko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot btl-bot merged commit b55045a into BTLzdravtech:18.0 Apr 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.