From adc7fe15e7463d37e53f5d43995de612723bb7ed Mon Sep 17 00:00:00 2001 From: Pierre-Yves Dufays Date: Tue, 16 Apr 2024 15:58:22 +0200 Subject: [PATCH] [FIX] website_slides: allow creating partner when adding attendee MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit How to reproduce: 1. Go to any course 2. Click on the button 'Add attendees' 3. Type the recipients nameĀ  "Create and edit ..." should be displayed but is not. To reenable this feature, we remove the option no_create_edit on partner_ids of the slide_channel_invite_view_form form to enable the creation of partner when adding attendee to a course. As the support for the force_email context has been discontinued, we don't reenable the quick_create as it can create partner without email (if the user enter a non-valid email). But we reenable the "create edit" option with a view that force the user to enter an email: base.view_partner_simple_form (like done on some views in odoo/odoo#149806). Task-3868824 closes odoo/odoo#162190 Signed-off-by: Thibault Delavallee (tde) --- addons/website_slides/wizard/slide_channel_invite_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_slides/wizard/slide_channel_invite_views.xml b/addons/website_slides/wizard/slide_channel_invite_views.xml index 2b010673323..f57ebf9a2c3 100644 --- a/addons/website_slides/wizard/slide_channel_invite_views.xml +++ b/addons/website_slides/wizard/slide_channel_invite_views.xml @@ -24,8 +24,8 @@ widget="many2many_tags_email" placeholder="Add contacts..." required="send_email" - options="{'no_create_edit': True, 'no_quick_create': True}" - context="{'show_email': True}"/> + options="{'no_quick_create': True}" + context="{'show_email': True, 'form_view_ref': 'base.view_partner_simple_form'}"/>