sms_data.xml 1.4 KB

1234567891011121314151617181920
  1. <?xml version="1.0"?>
  2. <odoo><data noupdate="1">
  3. <record id="sms_template_data_event_registration" model="sms.template">
  4. <field name="name">Event: Registration</field>
  5. <field name="model_id" ref="event.model_event_registration"/>
  6. <field name="body">{{ object.event_id.organizer_id.name or object.event_id.company_id.name or user.env.company.name }}: We are happy to confirm your registration for the {{ object.event_id.name }} event.</field>
  7. <field name="lang">{{ object.partner_id.lang }}</field>
  8. </record>
  9. <record id="sms_template_data_event_reminder" model="sms.template">
  10. <field name="name">Event: Reminder</field>
  11. <field name="model_id" ref="event.model_event_registration"/>
  12. <field name="body">Ready for "{{ object.event_id.name }}" {{ object.get_date_range_str(object.partner_id.lang) }}?
  13. {{ 'It starts at %s' % format_time(time=object.event_begin_date, tz=object.event_id.date_tz, time_format='short', lang_code=object.partner_id.lang) + (', at %s' % object.event_id.address_inline if object.event_id.address_inline else '') + '.\nSee you there!' if object.event_id.address_inline or 'website_published' not in object.event_id._fields else 'Join us on %s/event/%i !' % (object.get_base_url(), object.event_id.id) }}</field>
  14. <field name="lang">{{ object.partner_id.lang }}</field>
  15. </record>
  16. </data></odoo>