PURPOSE Clean organization and models linked to Event Online feature introduced in semi stable saas-13.3 at odoo/odoo@981f95bbf4 and odoo/enterprise@14722028ae Also clean website event menu not being available in website event but only in website event track, which implies some extra-code to manage it. In short: merge website_event_online in website_event, website_event_track _(online/session) in website_event_track. RATIONALE _online modules have been added to extend content of website_event and website_event_track without having any impact on those module. First step of cleaning is to move this content directly in base module. track_session module is mainly a rewrite of track module. Second step of cleaning is to move its content directly in website_event_track. SPECIFICATIONS Quickly reorganize some bits of code in website_event module to ease future integration of code from _online sub-modules. It also helps understanding and finding its way through the module. Split python files by model: notably event.type outside of event.event file and code. Reorganize templates by main use * _list: list view of events; * _page: page view of events, either event itself or registration flow (_page_registration); * move side templates in side files; LINKS Task ID-2319779 COM odoo/odoo#56067 ENT odoo/enterprise#12520 UPG odoo/upgrade#1654
72 lines
2.7 KiB
XML
72 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Multipage event - Default template when creating a new page -->
|
|
<template id="default_page">
|
|
<t t-call="website.layout">
|
|
<div class="oe_structure oe_empty"/>
|
|
</t>
|
|
</template>
|
|
|
|
<!-- Multipage event - Default template for the Introduction page -->
|
|
<template id="template_intro">
|
|
<t t-call="website_event.layout">
|
|
<div class="oe_structure oe_empty" id="oe_structure_website_event_intro_1"/>
|
|
<section class="s_title pt32 pb32" data-vcss="001" data-snippet="s_title" data-name="Title">
|
|
<div class="container s_allow_columns">
|
|
<h1 style="text-align: center;">
|
|
<font style="font-size: 62px;" class="o_default_snippet_text">Introduction</font>
|
|
</h1>
|
|
</div>
|
|
</section>
|
|
<div class="oe_structure oe_empty" id="oe_structure_website_event_intro_2"/>
|
|
</t>
|
|
</template>
|
|
|
|
<!-- Multipage event - Default template for the Location page -->
|
|
<template id="template_location">
|
|
<t t-call="website_event.layout">
|
|
<div class="oe_structure" id="oe_structure_website_event_location_1"/>
|
|
<section class="pt32 pb32">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1 class="o_page_header mb-3">Event Location</h1>
|
|
<h4 class="mb-3" t-field="event.address_id" t-options='{
|
|
"widget": "contact",
|
|
"fields": ["name"],
|
|
}'/>
|
|
<div class="mb-3" t-field="event.address_id" t-options='{
|
|
"widget": "contact",
|
|
"fields": ["address"],
|
|
"no_marker": True
|
|
}'/>
|
|
<div class="mb-3" t-field="event.address_id" t-options='{
|
|
"widget": "contact",
|
|
"fields": ["phone", "mobile", "email"],
|
|
"no_marker": True
|
|
}'/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div class="oe_structure" id="oe_structure_website_event_location_2"/>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="404" name="Event 404">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure oe_empty">
|
|
<div class="container">
|
|
<h1 class="mt-4">Event not found!</h1>
|
|
<p>Sorry, the requested event is not available anymore.</p>
|
|
<p><a t-attf-href="/event">Return to the event list.</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
</odoo>
|