-
- Downloads
[FIX] mass_mailing: save transpiled html without affecting body_arch
Since the introduction of Odoo Editor, `field_html`'s `_getValue` uses `wysiwyg.getValue`. This conflicts with the mechanism of `mass_mailing` which modifies the html of the editable area in place to save an "e-mailable" version on the `body_html` field, then relies on `_getValue` to reset the original html (`body_arch`). This ensures the field has a value before modifying the html in place, so we can manually restore it instead of relying on a side effect of the old behavior of `_getValue`. Part-of: odoo/odoo#75901
Showing
- addons/mass_mailing/static/src/js/mass_mailing_widget.js 2 additions, 0 deletionsaddons/mass_mailing/static/src/js/mass_mailing_widget.js
- addons/mass_mailing/static/src/js/tours/mass_mailing_editor_tour.js 28 additions, 0 deletions...s_mailing/static/src/js/tours/mass_mailing_editor_tour.js
- addons/mass_mailing/tests/__init__.py 1 addition, 0 deletionsaddons/mass_mailing/tests/__init__.py
- addons/mass_mailing/tests/test_mailing_ui.py 23 additions, 0 deletionsaddons/mass_mailing/tests/test_mailing_ui.py
- addons/web_editor/static/src/js/backend/convert_inline.js 1 addition, 1 deletionaddons/web_editor/static/src/js/backend/convert_inline.js
addons/mass_mailing/tests/test_mailing_ui.py
0 → 100644
Please register or sign in to comment