[FIX] mail: allow editing of mail mail
As it holds full HTML documents, mail.mail often encounters issues with the html editor. We piggy-back off the intoduction of the switching behavior between code-view and readonly-view behavior introduced in a5c0085ce91570c6c961e3293dfe50f4faba6043 The 'sandboxed preview' mode can now be enabled with an option and will ensure all content can only be viewed in a sandboxed iframe or in the code editor. This re-introduces editing, which was mistakenly fully disabled in the usability fix that introduced body_content here: 5055b374 Some tests are added to ensure the key points of this commit remain the same. Tests are re-ordered alphabetically to match the order of execution, making debugging easier. task-3255777 closes odoo/odoo#118423 Signed-off-by:David Monjoie (dmo) <dmo@odoo.com>
Showing
- addons/mail/views/mail_mail_views.xml 3 additions, 1 deletionaddons/mail/views/mail_mail_views.xml
- addons/web_editor/static/src/js/backend/html_field.js 76 additions, 48 deletionsaddons/web_editor/static/src/js/backend/html_field.js
- addons/web_editor/static/src/js/backend/html_field.xml 3 additions, 3 deletionsaddons/web_editor/static/src/js/backend/html_field.xml
- addons/web_editor/static/tests/html_field_tests.js 152 additions, 67 deletionsaddons/web_editor/static/tests/html_field_tests.js
- addons/website_sale/static/tests/tours/website_sale_shop_mail.js 0 additions, 12 deletions...website_sale/static/tests/tours/website_sale_shop_mail.js
- addons/website_sale/tests/test_website_sale_mail.py 8 additions, 0 deletionsaddons/website_sale/tests/test_website_sale_mail.py
Loading
Please register or sign in to comment