Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
S
solagro_website_event_partner
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Solagro
solagro_website_event_partner
Validations
c02fcc5a
Valider
c02fcc5a
rédigé
Il y a 10 mois
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[FIX] keep default fields from registrations
parent
b72e3f65
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
controllers/website_event.py
+1
-3
1 ajout, 3 suppressions
controllers/website_event.py
templates/event_registration_template.xml
+23
-15
23 ajouts, 15 suppressions
templates/event_registration_template.xml
avec
24 ajouts
et
18 suppressions
controllers/website_event.py
+
1
−
3
Voir le fichier @
c02fcc5a
...
...
@@ -11,9 +11,7 @@ from odoo.addons.website_event_questions.controllers.main import WebsiteEvent
class
WebsiteEventPartnerQuestion
(
WebsiteEvent
):
def
_process_attendees_form
(
self
,
event
,
form_details
):
"""
Process data posted from the attendee details form.
Extracts question answers:
- For questions of type
'
multiple_choice
'
, extracting the suggested answer id
"""
"""
Process data posted from the attendee details form.
"""
registrations
=
super
().
_process_attendees_form
(
event
,
form_details
)
fields_to_update
=
{}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
templates/event_registration_template.xml
+
23
−
15
Voir le fichier @
c02fcc5a
...
...
@@ -178,22 +178,29 @@
priority=
"101"
>
<!--
in case question_ids are defined,
user
is
connected
and
we are registering
for the first ticket
we hide the 3 default fields and replace by partner related questions
Phone is only displayed if
user
not
connected
or if
we are
not
registering
the
first contact
-->
<xpath
expr=
"//t[@name='attendee_loop']//*[hasclass('modal-body')]/div[hasclass('row')]"
expr=
"//t[@name='attendee_loop']//*[hasclass('modal-body')]/div[hasclass('row')]
/div[input[@type='tel']]
"
position=
"attributes"
>
<attribute
name=
"t-if"
>
not event.partner_question_ids or
request.env.user._is_public() or counter > 1
</attribute>
>
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"
>
<div
t-else=
""
class=
"my-4"
>
<t
t-if=
"event.partner_question_ids and not request.env.user._is_public() and counter == 1"
>
<div
class=
"my-4"
>
<div
t-foreach=
"event.partner_question_ids"
t-as=
"question"
...
...
@@ -205,6 +212,7 @@
/>
</div>
</div>
</t>
</xpath>
</template>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter