From 6cde21413c6f3bd9e1bcf3094481ffd0c8bc72db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Thu, 13 Sep 2018 15:42:46 +0200 Subject: [PATCH] [IMP] sale: improve left menu and quotation builder Adapt the left menu to correctly display each heading on a new line. Always show the left menu navigation, especially on mobile where it is the most useful to quickly go below. Remove unnecessary code from the quotation builder template. PR: #26801 task-1876864 --- .../sale/static/src/js/sale_portal_sidebar.js | 19 +------------------ addons/sale/views/sale_portal_templates.xml | 4 ++-- .../views/sale_portal_templates.xml | 11 ++--------- 3 files changed, 5 insertions(+), 29 deletions(-) diff --git a/addons/sale/static/src/js/sale_portal_sidebar.js b/addons/sale/static/src/js/sale_portal_sidebar.js index eea2f061726..b3b7f85f675 100644 --- a/addons/sale/static/src/js/sale_portal_sidebar.js +++ b/addons/sale/static/src/js/sale_portal_sidebar.js @@ -24,9 +24,6 @@ odoo.define('sale.SalePortalSidebar', function (require) { var PortalSidebar = require('portal.PortalSidebar'); var SalePortalSidebar = PortalSidebar.extend({ - events: { - 'click .o_portal_sale_print': '_onPrintSaleOrder', - }, /** * @override * @param {Object} $watched_selector @@ -97,7 +94,7 @@ var SalePortalSidebar = PortalSidebar.extend({ } if (lastLI) { if (!lastUL) { - lastUL = $("