From ec99a8f62239c5137275da8958e4da05cdbfd5a2 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Thu, 8 Sep 2016 16:43:34 +0200 Subject: [PATCH] [FIX][website_mail_snippet_table_edit] Compatibilize with website_less. Without this patch, `website_less` disables this addon. With this patch, it improves it. Win-win! :blush: --- website_mail_snippet_table_edit/README.rst | 5 +++-- website_mail_snippet_table_edit/views/snippets.xml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website_mail_snippet_table_edit/README.rst b/website_mail_snippet_table_edit/README.rst index ce6038dd..b82a3253 100644 --- a/website_mail_snippet_table_edit/README.rst +++ b/website_mail_snippet_table_edit/README.rst @@ -36,8 +36,9 @@ To use this module, you need to: Known issues / Roadmap ====================== -* You cannot drag & drop table rows among tables, and that's because of the - inner design of Odoo's drag & drop engine, that does not allow that easily. +* You cannot drag & drop table rows among tables, unless you install + `website_less `_. +* New mail editor engine in Odoo 9.0+ makes this module unnecessary there. Bug Tracker =========== diff --git a/website_mail_snippet_table_edit/views/snippets.xml b/website_mail_snippet_table_edit/views/snippets.xml index 758afd59..c143746e 100644 --- a/website_mail_snippet_table_edit/views/snippets.xml +++ b/website_mail_snippet_table_edit/views/snippets.xml @@ -9,8 +9,8 @@ inherit_id="website_mail.email_designer_snippets">
-
+ data-selector-children="[data-oe-field='body_html'] tbody, [data-oe-field='body_html'] thead, [data-oe-field='body_html'] tfoot" + data-selector="[data-oe-field='body_html'] tr"/>