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
43 lines
2.0 KiB
XML
43 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Snippet - Country Events - Placeholder -->
|
|
<template id="s_country_events" name="Events">
|
|
<div t-attf-class="s_country_events_list oe_country_events #{_classes}">
|
|
<div class="country_events_list">
|
|
<h6 class="o_wevent_sidebar_title">
|
|
<i class="fa fa-globe mr-2"/>Upcoming Events
|
|
</h6>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- Snippets and options -->
|
|
<template id="snippets" inherit_id="website.snippets">
|
|
<xpath expr="//t[@id='event_local_events_hook']" position="replace">
|
|
<t t-snippet="website_event.s_country_events" t-thumbnail="/website_event/static/src/img/snippets_thumbs/s_country_events.svg"/>
|
|
</xpath>
|
|
<xpath expr="//t[@id='event_speaker_bio_hook']" position="replace">
|
|
<t t-snippet="website_event.s_speaker_bio" t-thumbnail="/website_event/static/src/img/snippets_thumbs/s_speaker_bio.svg"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="snippet_options" inherit_id="website.snippet_options">
|
|
<xpath expr="//*[@t-set='so_content_addition_selector']" position="inside">, .oe_country_events, .s_speaker_bio</xpath>
|
|
</template>
|
|
|
|
<!-- Snippet - Speaker Bio -->
|
|
<template id="s_speaker_bio" name="Speaker Bio">
|
|
<div class="s_speaker_bio" itemscope="itemscope" itemtype="http://schema.org/Person" itemprop="performer">
|
|
<span class="badge badge-secondary text-uppercase o_wevent_badge">Speaker</span>
|
|
<img src="/website_event/static/src/img/speaker.png" width="70" class="img-fluid rounded-circle float-left mr-3" alt=""/>
|
|
<div class="overflow-hidden">
|
|
<h4 class="mt-3 mb-1" itemprop="name">John DOE</h4>
|
|
<h6 class="mb-4">Company</h6>
|
|
<p>At just 13 years old, John DOE was already starting to develop his first business applications for customers. After mastering civil engineering, he founded TinyERP. This was the first phase of OpenERP which would later became Odoo, the most installed open-source business software worldwide.</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
</odoo>
|