From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/event/data/email_template_data.xml | 479 ++++++++++++++++++++++++++ addons/event/data/event_data.xml | 59 ++++ addons/event/data/event_demo.xml | 256 ++++++++++++++ addons/event/data/event_demo_misc.xml | 101 ++++++ addons/event/data/event_registration_demo.xml | 163 +++++++++ addons/event/data/res_partner_demo.xml | 88 +++++ addons/event/data/res_users_demo.xml | 6 + 7 files changed, 1152 insertions(+) create mode 100644 addons/event/data/email_template_data.xml create mode 100644 addons/event/data/event_data.xml create mode 100644 addons/event/data/event_demo.xml create mode 100644 addons/event/data/event_demo_misc.xml create mode 100644 addons/event/data/event_registration_demo.xml create mode 100644 addons/event/data/res_partner_demo.xml create mode 100644 addons/event/data/res_users_demo.xml (limited to 'addons/event/data') diff --git a/addons/event/data/email_template_data.xml b/addons/event/data/email_template_data.xml new file mode 100644 index 00000000..4bc9af21 --- /dev/null +++ b/addons/event/data/email_template_data.xml @@ -0,0 +1,479 @@ + + + + + + Event: Registration Badge + + Your badge for ${object.event_id.name} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + +
+ Dear ${object.name},
+ Thank you for your inquiry.
+ Here is your badge for the event ${object.event_id.name}.
+ If you have any questions, please let us know. +

+ Thank you, + % if object.event_id.user_id.signature: +
+ ${object.event_id.user_id.signature | safe} + % endif +
+ + badge_of_${(object.event_id.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + Event: Registration + + Your registration at ${object.event_id.name} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + + + + +
+% set date_begin = format_datetime(object.event_id.date_begin, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set date_end = format_datetime(object.event_id.date_end, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set is_online = 'is_published' in object.event_id and object.event_id.is_published +% set event_organizer = object.event_id.organizer_id +% set event_address = object.event_id.address_id + + + + + + + + + + + + + + + +
+ + + +
+ Your registration
+ + ${object.name} + +
+ % if is_online + + View Event + + % else + ${'%s' % object.company_id.name} + % endif +
+
+
+
+ + + +
+
+ Hello ${object.name or ''},
+ We are happy to confirm your registration to the event + % if is_online: + ${object.event_id.name} + % else: + ${object.event_id.name} + % endif + for attendee ${object.name}. +
+
+
+ Add this event to your calendar + Google + iCal/Outlook + + Yahoo + +

+
+
+ See you soon,
+ + --
+ % if event_organizer: + ${event_organizer.name} + % else: + The ${object.event_id.name} Team + % endif +
+
+
+
+
+
+ + + + + + + + + + + +
+ + + + + + + +
+ + +
From ${object.event_id.date_begin_located}
+
To ${object.event_id.date_end_located}
+
TZ ${object.event_id.date_tz}
+
+ % if event_address: + + % endif + + % if event_address: + % set location = '' + % if object.event_id.address_id.name: +
${object.event_id.address_id.name}
+ % endif + % if object.event_id.address_id.street: +
${object.event_id.address_id.street}
+ % set location = object.event_id.address_id.street + % endif + % if object.event_id.address_id.street2: +
${object.event_id.address_id.street2}
+ % set location = '%s, %s' % (location, object.event_id.address_id.street2) + % endif +
+ % if object.event_id.address_id.city: + ${object.event_id.address_id.city}, + % set location = '%s, %s' % (location, object.event_id.address_id.city) + % endif + % if object.event_id.address_id.state_id.name: + ${object.event_id.address_id.state_id.name}, + % set location = '%s, %s' % (location, object.event_id.address_id.state_id.name) + % endif + % if object.event_id.address_id.zip: + ${object.event_id.address_id.zip} + % set location = '%s, %s' % (location, object.event_id.address_id.zip) + % endif +
+ % if object.event_id.address_id.country_id.name: +
${object.event_id.address_id.country_id.name}
+ % set location = '%s, %s' % (location, object.event_id.address_id.country_id.name) + % endif + % endif +
+
+ % if event_organizer +
+ % endif +
+ + % if event_organizer: +
+ Questions about this event? +
Please contact the organizer:
+
    +
  • ${event_organizer.name}
  • + % if event_organizer.email +
  • Mail: ${event_organizer.email}
  • + % endif + % if event_organizer.phone +
  • Phone: ${event_organizer.phone}
  • + % endif +
+
+ % endif +
+ + % if is_online or event_address: +
+ % endif +
+ + % if is_online: +
+ Get the best mobile experience. + Install our mobile app +
+ % endif +
+ + % if is_online and event_address: +
+ % endif +
+ + % if event_address: +
+
+ + Google Maps + +
+
+ % endif +
+
+
+ % if object.company_id + + +
+ Sent by ${object.company_id.name} + % if is_online: +
+ Discover all our events. + % endif +
+ % endif +
+
+ ${object.partner_id.lang} +
+ + + Event: Reminder + + ${object.event_id.name}: ${object.get_date_range_str()} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + + + + +
+% set date_begin = format_datetime(object.event_id.date_begin, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set date_end = format_datetime(object.event_id.date_end, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set is_online = 'is_published' in object.event_id and object.event_id.is_published +% set event_organizer = object.event_id.organizer_id +% set event_address = object.event_id.address_id + + + + + + + + + + + + + + + +
+ + + +
+ Your registration
+ + ${object.name} + +
+ % if is_online + + View Event + + % else + ${'%s' % object.company_id.name} + % endif +
+
+
+
+ + + +
+
+ Hello ${object.name},
+ We are excited to remind you that the event + % if is_online: + ${object.event_id.name} + % else: + ${object.event_id.name} + % endif + is starting ${object.get_date_range_str()}. +
+
+
+ Add this event to your calendar + Google + iCal/Outlook + + Yahoo + +

+
+
+ We confirm your registration and hope to meet you there,
+ + --
+ % if event_organizer: + ${event_organizer.name} + % else: + The ${object.event_id.name} Team + % endif +
+
+
+
+
+
+ + + + + + + + + + + +
+ + + + + + + +
+ + +
From ${object.event_id.date_begin_located}
+
To ${object.event_id.date_end_located}
+
TZ ${object.event_id.date_tz}
+
+ % if event_address: + + % endif + + % if event_address: + % set location = '' + % if object.event_id.address_id.name: +
${object.event_id.address_id.name}
+ % endif + % if object.event_id.address_id.street: +
${object.event_id.address_id.street}
+ % set location = object.event_id.address_id.street + % endif + % if object.event_id.address_id.street2: +
${object.event_id.address_id.street2}
+ % set location = '%s, %s' % (location, object.event_id.address_id.street2) + % endif +
+ % if object.event_id.address_id.city: + ${object.event_id.address_id.city}, + % set location = '%s, %s' % (location, object.event_id.address_id.city) + % endif + % if object.event_id.address_id.state_id.name: + ${object.event_id.address_id.state_id.name}, + % set location = '%s, %s' % (location, object.event_id.address_id.state_id.name) + % endif + % if object.event_id.address_id.zip: + ${object.event_id.address_id.zip} + % set location = '%s, %s' % (location, object.event_id.address_id.zip) + % endif +
+ % if object.event_id.address_id.country_id.name: +
${object.event_id.address_id.country_id.name}
+ % set location = '%s, %s' % (location, object.event_id.address_id.country_id.name) + % endif + % endif +
+
+ % if event_organizer +
+ % endif +
+ + % if event_organizer: +
+ Questions about this event? +
Please contact the organizer:
+
    +
  • ${event_organizer.name}
  • + % if event_organizer.email +
  • Mail: ${event_organizer.email}
  • + % endif + % if event_organizer.phone +
  • Phone: ${event_organizer.phone}
  • + % endif +
+
+ % endif +
+ + % if is_online or event_address: +
+ % endif +
+ + % if is_online: +
+ Get the best mobile experience. + Install our mobile app +
+ % endif +
+ + % if is_online and event_address: +
+ % endif +
+ + % if event_address: +
+
+ + Google Maps + +
+
+ % endif +
+
+
+ % if object.company_id + + +
+ Sent by ${object.company_id.name} + % if 'website_url' in object.event_id and object.event_id.website_url: +
+ Discover all our events. + % endif +
+ % endif +
+
+ ${object.partner_id.lang} +
+ +
+
diff --git a/addons/event/data/event_data.xml b/addons/event/data/event_data.xml new file mode 100644 index 00000000..e08d0744 --- /dev/null +++ b/addons/event/data/event_data.xml @@ -0,0 +1,59 @@ + + + + + + Event: Mail Scheduler + + code + model.run(True) + + 1 + hours + -1 + + + + + + Ticketing + + + + + Conference + + + + + + New + Freshly created + 1 + + + Booked + The place has been reserved + 2 + + + Announced + The event has been publicly announced + 3 + + + Ended + Fully ended + 5 + + + + + Cancelled + The event has been cancelled + 6 + + + + + diff --git a/addons/event/data/event_demo.xml b/addons/event/data/event_demo.xml new file mode 100644 index 00000000..856ed525 --- /dev/null +++ b/addons/event/data/event_demo.xml @@ -0,0 +1,256 @@ + + + + + + Design Fair Los Angeles + + + + True + 50 + + US/Pacific + + + + + + Free + Free entrance, no food ! + + + + 0 + + + Standard + For only 10, you gain access to catering. Yum yum. + + + + 50 + + + VIP + You are truly among the best. + + + + 10 + + + + Great Reno Ballon Race + + + + + + + blocked + + + + + event.event + +

Hello Marc Demo,
+ Our flight authorizations have been revoked due to insurance issues.
+ Could you take care of it as soon as possible ?

+
+ comment + + +
+ + event.event + + +

Hi Mitchell Admin,
I will take care of it today !

+ comment + + +
+ + event.event + + +

Great ! This event will stay "blocked" until it is fixed.
+ Feel free to green it once everything is in order.

+
+ comment + + +
+ + + + + Call the local state house. + + + + + + + Conference for Architects + + + + + + True + 200 + + + + + Standard + + + 50 + + + VIP + + + 5 + + + + + + Call the caterer. + + + + + + + + + + + Live Music Festival + + + + + + + + + + Standard + + + 1200 + + + VIP + + + 50 + + + + + + Prepare interview with local media. + + + + + + + + + + + + Business workshops + + + + True + 4 + + US/Pacific + + + done + + + + General Admission + + + 4 + + + + + + Prepare after movie. + + + + + + + Hockey Tournament + + + + + + + + + + An unpublished event + + + + + + + + + OpenWood Collection Online Reveal + Europe/Brussels + + + + + + + + + +
+
The finest OpenWood furnitures are coming to your house in a brand new collection
+

And this time, we go fully ONLINE! Meet us in our live streams from the comfort of your house.
+ Special discount codes will be handed out during the various streams, make sure to be there on time.

+

For any additional information, please contact us at events@idea.com.

+
+

This event is fully online and FREE, if you have paid for tickets, you should get a refund.
+ It will require a good Internet connection to get the best video quality.

+
+
+
+
+ + Standard + + + + + VIP + + + 10 + + +
diff --git a/addons/event/data/event_demo_misc.xml b/addons/event/data/event_demo_misc.xml new file mode 100644 index 00000000..a87cce5d --- /dev/null +++ b/addons/event/data/event_demo_misc.xml @@ -0,0 +1,101 @@ + + + + + + Exhibition + + + + + Training + + + + + Sport + + + + US/Pacific + + + + Europe/Brussels + + + + + Age + 3 + + + Activity + 1 + + + Type + 2 + + + + 5-10 + 1 + + 1 + + + + 10-14 + 2 + + 2 + + + + 15-18 + 3 + + 3 + + + + 18+ + 4 + + 4 + + + + Culture + 10 + + 5 + + + Music + 11 + + 6 + + + Sport + 12 + + 7 + + + + Online + 20 + + 8 + + + Conference + 21 + + 9 + + + diff --git a/addons/event/data/event_registration_demo.xml b/addons/event/data/event_registration_demo.xml new file mode 100644 index 00000000..632702c1 --- /dev/null +++ b/addons/event/data/event_registration_demo.xml @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + Tucker Carlson + tuck@test.example.com + + + + + + + + + + + + + + + Piers Morgan + piersm@test.example.com + + + + + + + + + + + + + Nigel Woodfire + nigelw@test.example.com + + + + + + + + + + + + + + + + + + Piers Morgan + piersm@test.example.com + + + + + + + + + + + + + + + + + + + + + + + + + Piers Morgan + piersm@test.example.com + + + + + + + + + + + + + Nigel Woodfire + nigelw@test.example.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/addons/event/data/res_partner_demo.xml b/addons/event/data/res_partner_demo.xml new file mode 100644 index 00000000..50ff256c --- /dev/null +++ b/addons/event/data/res_partner_demo.xml @@ -0,0 +1,88 @@ + + + + + + Reno Airfield + 1 + 1235 Columbia Hill Rd + Reno + + 89508 + + + + + Wembley Stadium + 1 + Wembley HA9 0WS + London + + + + + + Los Angeles Convention Center + 1 + 1201 S Figueroa St + Los Angeles + + 90015 + + + + + + Bloem GmbH + + + Behrenstraße 55 + 10117 + Berlin + + +49 30 12345678 + +49 30 87654321 + flower@example.com + www.flower.example.com + + + OpenWood + + + Orval 1 + 6823 + Florenville + + +32 987 65 43 21 + +32 987 65 43 21 + wow@example.com + www.openwood.example.com + + + Tree Dealers SP + + + Place d'Youville, 995 + QC G1R 3P1 + Ville de Quebec + + +1 418 123 4567 + +1 418 765 4321 + tree@example.com + www.tree.example.com + + + Shangai Pterocarpus Furniture Co., Ltd. + + + 68 Taicang Rd, Shi Men Er Lu Jie Dao, Huangpu Qu + 200000 + Shanghai Shi + + +86 21 1234 5678 + +86 21 8765 4321 + ptero@example.com + www.pterocarpus.example.com + + + diff --git a/addons/event/data/res_users_demo.xml b/addons/event/data/res_users_demo.xml new file mode 100644 index 00000000..04cd8668 --- /dev/null +++ b/addons/event/data/res_users_demo.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file -- cgit v1.2.3