From 5e0f7d1e78cd160bc60359f7a706496fdc3bab36 Mon Sep 17 00:00:00 2001 From: Noe Antoine Date: Wed, 17 Feb 2021 11:25:42 +0000 Subject: [PATCH] [IMP] website_crm : catch logged partner info on contact form 1) Improves user experience by filling contact form with logged partner info. This facilitates the flow when logged. The contact us form is filled with data from the partner linked with logged in web visitor, logged_partner. Its data is used in priority. Empty fields (e.g. no partner is logged) will be set to default values in request.params if any. This way, previous behaviour is preserved (as well as widget correct display behaviour). 2) This commit also adds a star next to the required field Subject in the contact us form like for the rest of required fields of the form : s_website_form_mark This improves coherence and clarity when filling the form. Task-ID : 2241639 PR : #61126 --- addons/website_crm/views/website_crm_templates.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/website_crm/views/website_crm_templates.xml b/addons/website_crm/views/website_crm_templates.xml index 0394dcf3f96..8b5bf7d5b9f 100644 --- a/addons/website_crm/views/website_crm_templates.xml +++ b/addons/website_crm/views/website_crm_templates.xml @@ -1,12 +1,15 @@