summaryrefslogtreecommitdiff
path: root/addons/website_event/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-08-19 09:55:26 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-21 17:30:13 +0000
commitb0845c0f2b48d6c7029a34ae50fc95876630e7ed (patch)
treecab4c50786ae087fdf6dec70b0c12ddc0c39c62d /addons/website_event/data
parentd697966585e9686f4bfce8049c1d0a21abe8a279 (diff)
[REM] website_event_online: merge into website_event
PURPOSE Clean organization and models linked to Event Online feature introduced in semi stable saas-13.3 at odoo/odoo@981f95bbf46658eda9f2d33751b9310cc67d86aa and odoo/enterprise@14722028ae0773c3710ea48ce48ff44703e83b5a 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 Move remaining content of website event online to website event. Update dependencies accordingly. LINKS Task ID-2319779 COM odoo/odoo#56067 ENT odoo/enterprise#12520 UPG odoo/upgrade#1654
Diffstat (limited to 'addons/website_event/data')
-rw-r--r--addons/website_event/data/event_demo.xml2
-rw-r--r--addons/website_event/data/event_registration_demo.xml18
-rw-r--r--addons/website_event/data/website_visitor_demo.xml26
3 files changed, 46 insertions, 0 deletions
diff --git a/addons/website_event/data/event_demo.xml b/addons/website_event/data/event_demo.xml
index 85a46feb7a7..a894ec82128 100644
--- a/addons/website_event/data/event_demo.xml
+++ b/addons/website_event/data/event_demo.xml
@@ -41,6 +41,7 @@
<record id="event.event_1" model="event.event">
<field name="website_menu" eval="True"/>
<field name="website_published" eval="True"/>
+ <field name="menu_register_cta" eval="True"/>
<field name="subtitle">The Great Reno Balloon Race is the world's largest free hot-air ballooning event.</field>
<field name="cover_properties">{"background-image": "url('/website_event/static/src/img/event_cover_1.jpg')", "resize_class": "o_record_has_cover o_half_screen_height", "opacity": "0.4"}</field>
<field name="description" type="html">
@@ -151,6 +152,7 @@
<record id="event.event_7" model="event.event">
<field name="website_menu" eval="True"/>
<field name="website_published" eval="True"/>
+ <field name="menu_register_cta" eval="True"/>
<field name="subtitle">Our newest collection will be revealed online! Interact with us on our live streams!</field>
<field name="cover_properties">{"background-image": "url('/website_event/static/src/img/event_cover_7.jpg')", "resize_class": "o_record_has_cover o_half_screen_height", "opacity": "0.4"}</field>
<field name="description" type="html">
diff --git a/addons/website_event/data/event_registration_demo.xml b/addons/website_event/data/event_registration_demo.xml
new file mode 100644
index 00000000000..ff661e424a9
--- /dev/null
+++ b/addons/website_event/data/event_registration_demo.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo><data>
+
+ <!-- OpenWood Collection Online Reveal: Gemini (all) -->
+ <record id="event.event_registration_7_0" model="event.registration">
+ <field name="visitor_id" ref="website_event.website_visitor_event_0"/>
+ </record>
+ <record id="event.event_registration_7_1" model="event.registration">
+ <field name="visitor_id" ref="website_event.website_visitor_event_0"/>
+ </record>
+ <record id="event.event_registration_7_2" model="event.registration">
+ <field name="visitor_id" ref="website_event.website_visitor_event_1"/>
+ </record>
+ <record id="event.event_registration_7_3" model="event.registration">
+ <field name="visitor_id" ref="website_event.website_visitor_event_1"/>
+ </record>
+
+</data></odoo>
diff --git a/addons/website_event/data/website_visitor_demo.xml b/addons/website_event/data/website_visitor_demo.xml
new file mode 100644
index 00000000000..8403ae7fb0b
--- /dev/null
+++ b/addons/website_event/data/website_visitor_demo.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="website_visitor_event_0" model="website.visitor">
+ <field name="name">Edwin Hansen</field>
+ <field name="partner_id" ref="base.res_partner_address_5"/>
+ <field name="country_id" ref="base.us"/>
+ </record>
+ <record id="website_visitor_event_1" model="website.visitor">
+ <field name="name">Soham Palmer</field>
+ <field name="partner_id" ref="base.res_partner_address_11"/>
+ <field name="country_id" ref="base.us"/>
+ </record>
+ <record id="website_visitor_event_2" model="website.visitor">
+ <field name="name">Philipe J. Fry</field>
+ <field name="partner_id" eval="False"/>
+ <field name="country_id" ref="base.be"/>
+ </record>
+ <record id="website_visitor_event_2_1" model="website.visitor">
+ <field name="name">Philipe J. Fry (old)</field>
+ <field name="parent_id" ref="website_event.website_visitor_event_2"/>
+ <field name="partner_id" eval="False"/>
+ <field name="country_id" ref="base.be"/>
+ </record>
+
+</odoo>