From 09e943429ee2b1e25b5179927c9a3a62b78cd76e Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Sat, 30 Jul 2016 12:43:21 +0200 Subject: [PATCH] [FIX] website_sale: unable to edit product price The less refactoring in 5b65befcd889139152c590490fb8965c9f4b5279 wrongly removed the css directive that hide some elements in edit mode. As a side effect, the product price was appearing twice when editing a product. Commit 44ca4317a93c4cd9a80aadba4cebf3c708bd1513 tempt to fix it but removed the edition part. opw:683343 --- addons/web_editor/static/src/less/web_editor.common.less | 4 ++++ addons/website_sale/views/templates.xml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/addons/web_editor/static/src/less/web_editor.common.less b/addons/web_editor/static/src/less/web_editor.common.less index 0af28ca1daf..53d9ba46377 100644 --- a/addons/web_editor/static/src/less/web_editor.common.less +++ b/addons/web_editor/static/src/less/web_editor.common.less @@ -8,6 +8,10 @@ html, body { display: none !important; } +.editor_enable .css_editable_mode_hidden { + display: none !important; +} + /* ----- Editor (for public user, like forum) ----- */ .note-toolbar { margin-left: 0 !important; diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index f47c5dbe381..0eb173a800a 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -434,6 +434,13 @@ +

+ +