From 88c2b6843a09ba087a10388fc39cb69dac4e2949 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 24 Feb 2016 12:03:49 +0100 Subject: [PATCH] [REF] web,web_editor,website(_*),report,pos,mass_mailing: assets * Remove recursive assets inclusions (i.e. assets_editor was including assets_common, summernote, ...) * Better construct the assets (link, then script + type attribute) * Better include the assets (split js / css, always use t-call-assets) * Simplifies the number of assets * Move bootstrap js to assets common * assets_frontend is now created by web module to allow using it on the connexion page but also in the web_editor, where colors have to be bootstrap/theme ones. Note: if a module depends on website, then keep using the inherit_id="WEBSITE.assets_frontend" --- .../mass_mailing/views/editor_field_html.xml | 24 +- addons/point_of_sale/views/pos_templates.xml | 6 +- addons/report/views/layouts.xml | 42 +- addons/theme_default/views/templates.xml | 12 +- addons/web/views/webclient_templates.xml | 701 +++++++++--------- addons/web_editor/views/editor.xml | 91 +-- addons/web_editor/views/iframe.xml | 19 +- addons/website/controllers/main.py | 2 +- addons/website/views/website_templates.xml | 116 +-- addons/website_forum/views/website_forum.xml | 13 +- .../view/website_slides_embed.xml | 12 +- 11 files changed, 514 insertions(+), 524 deletions(-) diff --git a/addons/mass_mailing/views/editor_field_html.xml b/addons/mass_mailing/views/editor_field_html.xml index 11224aa4fbb..77244586669 100644 --- a/addons/mass_mailing/views/editor_field_html.xml +++ b/addons/mass_mailing/views/editor_field_html.xml @@ -1,13 +1,15 @@ - - + + - - - - + diff --git a/addons/point_of_sale/views/pos_templates.xml b/addons/point_of_sale/views/pos_templates.xml index 528db600ed5..44529d4f09e 100644 --- a/addons/point_of_sale/views/pos_templates.xml +++ b/addons/point_of_sale/views/pos_templates.xml @@ -23,8 +23,10 @@ - - + + + + - - - + + - + + + + + - + + + + + + + + - - - + + - + + + - + + + + + + + + + - + + - + diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml index 1e84a3c010e..5755649334d 100644 --- a/addons/web_editor/views/editor.xml +++ b/addons/web_editor/views/editor.xml @@ -1,6 +1,5 @@ - - + - - - - - -