Browse Source

retraite individuelle correction

dev-rcn
root 3 years ago
parent
commit
c4d0ebb67a
6 changed files with 25 additions and 5 deletions
  1. +1
    -2
      __manifest__.py
  2. +7
    -1
      controllers/booking.py
  3. +1
    -0
      models/event.py
  4. +2
    -1
      views/booking_event.xml
  5. +1
    -1
      views/booking_website_registration.xml
  6. +13
    -0
      views/individual_booking_website_registration.xml

+ 1
- 2
__manifest__.py View File

@ -50,9 +50,8 @@
'views/individual_booking_event.xml',
'views/booking_event_registration.xml',
'views/booking_website_registration.xml',
'views/individual_booking_website_registration.xml',
'views/booking_registration.xml',
#'views/booking_event_templates_list.xml',
#'views/booking_event_templates_page_registration.xml',
'views/booking_location.xml',
'views/booking_room.xml',
'views/booking_questionnaire.xml',


+ 7
- 1
controllers/booking.py View File

@ -417,5 +417,11 @@ class booking(WebsiteEventController,AuthSignupHome):
individual_booking=request.env['event.event'].sudo().search([('name','=','Retraite individuelle')])
if individual_booking:
return request.redirect('/booking/registration/options?event_id='+str(int(individual_booking.id)))
data={}
data['event']=individual_booking
return request.render("kalachakra.individual_booking_p1",data)
#individual_booking=request.env['event.event'].sudo().search([('name','=','Retraite individuelle')])
#if individual_booking:
# return request.redirect('/booking/registration/options?event_id='+str(int(individual_booking.id)))

+ 1
- 0
models/event.py View File

@ -301,6 +301,7 @@ class KalachakraEvent(models.Model):
individual_super_member_month_price=fields.Monetary('1 month price',currency_field='currency_id')
individual_booking_html_introduction=fields.Html('Introduction text')
individual_booking_html_introduction2=fields.Html('Introduction text2')
@api.onchange('booking_event')


+ 2
- 1
views/booking_event.xml View File

@ -163,7 +163,8 @@
</group>
<group>
<field string="Introduction text" widget="html" name="individual_booking_html_introduction"/>
<field string="Introduction text page 1" widget="html" name="individual_booking_html_introduction"/>
<field string="Introduction text page 2" widget="html" name="individual_booking_html_introduction2"/>
</group>
</page>
</xpath>


+ 1
- 1
views/booking_website_registration.xml View File

@ -57,7 +57,7 @@
<t t-if="event.individual_booking_event">
<div>
<t t-raw="event.individual_booking_html_introduction"/>
<t t-raw="event.individual_booking_html_introduction2"/>
</div>


+ 13
- 0
views/individual_booking_website_registration.xml View File

@ -0,0 +1,13 @@
<odoo>
<template id="kalachakra.individual_booking_p1" name="individual booking registration page 1">
<t t-call="website.layout">
<div class="container-fluid">
<t t-raw="event.individual_booking_html_introduction"/>
<a t-att-href="'/booking/registration/options?event_id='+str(event.id)" class="ml-4 btn btn-secondary">Registering</a>
</div>
</t>
</template>
</odoo>

Loading…
Cancel
Save