From 8ba6e3b0c3bf856308b4d58158392d0e99d2b58e Mon Sep 17 00:00:00 2001 From: sri-odoo Date: Mon, 3 Sep 2018 16:11:57 +0200 Subject: [PATCH] [REF] sale(_management): review 'sale order' and 'quotation' templates --- .../sale/static/src/js/sale_portal_sidebar.js | 8 +- addons/sale/views/sale_portal_templates.xml | 709 +++++++++--------- .../views/sale_portal_templates.xml | 4 +- 3 files changed, 355 insertions(+), 366 deletions(-) diff --git a/addons/sale/static/src/js/sale_portal_sidebar.js b/addons/sale/static/src/js/sale_portal_sidebar.js index 0a06e52cc85..eea2f061726 100644 --- a/addons/sale/static/src/js/sale_portal_sidebar.js +++ b/addons/sale/static/src/js/sale_portal_sidebar.js @@ -76,11 +76,11 @@ var SalePortalSidebar = PortalSidebar.extend({ lastUL = null, $bsSidenav = this.$el.find('.bs-sidenav'); - $("[id^=quote_header_], [id^=quote_]", this.spyWatched).attr("id", ""); - _.each(this.spyWatched.find("h1, h2"), function (el) { + $("#quote_content [id^=quote_header_], #quote_content [id^=quote_]", this.spyWatched).attr("id", ""); + _.each(this.spyWatched.find("#quote_content h2, #quote_content h3"), function (el) { var id, text; switch (el.tagName.toLowerCase()) { - case "h1": + case "h2": id = self._setElementId('quote_header_', el); text = self._extractText($(el)); if (!text) { @@ -89,7 +89,7 @@ var SalePortalSidebar = PortalSidebar.extend({ lastLI = $("