Skip to content

[17.0][mail_layout_force] The Force Layout field does not change the email layout. #1825

@javierizaca

Description

@javierizaca

Module

mail_layout_force

Describe the bug

Modifying the Force Layout field does not change the layout of the template.

It should be noted that changing Force Layout does set values in the email_layout_xmlid field, but none of the sent emails have their layout modified.

To reproduce

Affected versions:
17.0 (Detected in this version, and verified that it works correctly in v16)

Steps to reproduce the behavior:

  1. Go to Configuration > Technical > Emails > Templates | Open the desired email.template record | In Advanced Parameters tab, find the Force Layout field and set up as desired.
  2. Send an email through the interface using the previously configured template.
  3. Check the received email.

Expected behavior
The layout should have changed according to the configured settings.

Additional context
Verified on Runbot and on a client's local instance. Images and a video from Runbot are attached.

Image Image Image
Oddo.17._.Issue.on.mail_layout_force.mp4

@ivantodorovich @sergioM-S73 @Reyes4711-S73 @AungKoKoLin1997 @jusle I see that you reviewed the migration PR. Could you check what might have happened?

The PR was merged in February and it does not seem to work as expected. Could it be due to a recent change in Odoo?

I’m not sure if you could help with this matter, please @pedrobaeza . I see that you reviewed this PR #1801 , and it had to be approved before the migration of mail_layout_force could continue.

Thank you very much, everyone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions