From 4e46947e44880effdbfad1cf05db1e76d3f91442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Wed, 4 Dec 2024 13:09:19 +0100 Subject: [PATCH] [MOV] contact questions after event ones --- templates/event_registration_template.xml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/templates/event_registration_template.xml b/templates/event_registration_template.xml index c2663b5..a9e6e13 100644 --- a/templates/event_registration_template.xml +++ b/templates/event_registration_template.xml @@ -189,10 +189,7 @@ name="t-if" >request.env.user._is_public() or counter > 1</attribute> </xpath> - <!-- - in case question_ids are defined, user is connected and we are registering for - the first ticket, question_ids are displayed - --> + <xpath expr="//t[@name='attendee_loop']//*[hasclass('modal-body')]/div[hasclass('row')]" position="after" @@ -216,5 +213,20 @@ </xpath> </template> + <template + id="registration_attendee_details_questions_solagro" + inherit_id="website_event_questions.registration_attendee_details_questions" + name="Registration Attendee Contact detail with questions Solagro" + priority="101" + > + <xpath + expr="//t[@name='attendee_loop']//*[hasclass('modal-body')]/div[hasclass('row')]" + position="before" + > + <xpath expr="//t[@t-if='event.specific_question_ids']" position="move" /> + </xpath> + + </template> + </odoo> -- GitLab