From e9879e63b48c406673b4e50865e1e7136e54ac67 Mon Sep 17 00:00:00 2001 From: Geoffroy Larue Date: Fri, 16 Nov 2018 09:09:36 +0000 Subject: [PATCH 1/3] [IMP] portal: improve design Small changes to the customer portal : form input reorderings, relabelling, removal of the draft quotation warning. --- addons/portal/static/src/scss/portal.scss | 1 - addons/portal/views/portal_templates.xml | 8 ++++---- addons/sale/controllers/portal.py | 2 +- addons/sale/views/sale_portal_templates.xml | 11 +++-------- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 2f344baebf539..a02e765f6a374 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -363,7 +363,6 @@ img.o_we_custom_image { address { span[itemprop="name"] { - font-weight: bold; margin-bottom: 0.3em; } diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index 95d3669e34af5..6827424deea4f 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -370,10 +370,6 @@ -
- - -
@@ -385,6 +381,10 @@
+
+ + +
diff --git a/addons/sale/controllers/portal.py b/addons/sale/controllers/portal.py index 0796b65dead07..117a0598c08b9 100644 --- a/addons/sale/controllers/portal.py +++ b/addons/sale/controllers/portal.py @@ -198,7 +198,7 @@ def portal_quote_accept(self, res_id, access_token=None, partner_name=None, sign return {'error': _('Invalid order')} if not order_sudo.has_to_be_signed(): - return {'error': _('Order is not in a state requiring customer signature.')} + return {'error': _('The order is not in a state requiring customer signature.')} if not signature: return {'error': _('Signature is missing.')} diff --git a/addons/sale/views/sale_portal_templates.xml b/addons/sale/views/sale_portal_templates.xml index 9a428d7ab198a..4d0b6ad1b3226 100644 --- a/addons/sale/views/sale_portal_templates.xml +++ b/addons/sale/views/sale_portal_templates.xml @@ -305,11 +305,6 @@ This quotation has been canceled. Contact us to get a new quotation.
-
- - This is a draft quotation. Contact us to get the final version. -
-