|
|
@ -31,14 +31,14 @@ class EventRegistration(models.Model): |
|
|
|
res=self.env['event.registration_questionnaire'].create(vals) |
|
|
|
|
|
|
|
#ajout des options pour la personne inscrite |
|
|
|
options=self.env['booking.option'].search([('event_id','=',int(reg.event_id))]) |
|
|
|
if options: |
|
|
|
for option in options: |
|
|
|
vals={} |
|
|
|
vals['booking_option_id']=int(option.booking_option_id) |
|
|
|
vals['booking_option_price']=option.booking_option_price |
|
|
|
vals['event_registration_id']=int(reg.id) |
|
|
|
res=self.env['event.registration_option'].create(vals) |
|
|
|
# options=self.env['booking.option'].search([('event_id','=',int(reg.event_id))]) |
|
|
|
# if options: |
|
|
|
# for option in options: |
|
|
|
# vals={} |
|
|
|
# vals['booking_option_id']=int(option.booking_option_id) |
|
|
|
# vals['booking_option_price']=option.booking_option_price |
|
|
|
# vals['event_registration_id']=int(reg.id) |
|
|
|
# res=self.env['event.registration_option'].create(vals) |
|
|
|
else: |
|
|
|
#inscription à la newsletter attachée à l'événement |
|
|
|
#si pas une retraite et présence d'une newletter rattaché à l'événement |
|
|
|