mail_template_data.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="mail_template_guidelines" model="mail.template">
  4. <field name="name">Mail Group: Send Guidelines</field>
  5. <field name="model_id" ref="mail_group.model_mail_group_member"/>
  6. <field name="subject">Guidelines of group {{ object.mail_group_id.name }}</field>
  7. <field name="email_to">{{ object.email }}</field>
  8. <field name="description">Sent to people who subscribed to a mailing group with group guidelines</field>
  9. <field name="body_html" type="html">
  10. <div>
  11. <p>Hello <t t-out="object.partner_id.name or ''"></t>,</p>
  12. <p>Please find below the guidelines of the {{ object.mail_group_id.name }} mailing list.</p>
  13. <p><t t-out="object.mail_group_id.moderation_guidelines_msg or ''"></t></p>
  14. </div>
  15. </field>
  16. <field name="lang">{{ object.partner_id.lang }}</field>
  17. <field name="auto_delete" eval="True"/>
  18. </record>
  19. <!-- Confirm subscription email -->
  20. <record id="mail_template_list_subscribe" model="mail.template">
  21. <field name="name">Mail Group: Mailing List Subscription</field>
  22. <field name="model_id" ref="mail_group.model_mail_group"/>
  23. <field name="subject">Confirm subscription to {{ object.name }}</field>
  24. <field name="description">Subscription confirmation to a mailing group</field>
  25. <field name="body_html" type="html">
  26. <div style="margin: 0px; padding: 0px;">
  27. Hello,<br/><br/>
  28. You have requested to be subscribed to the mailing list <strong t-out="object.name or ''"></strong>.
  29. <br/><br/>
  30. To confirm, please visit the following link: <strong t-if="ctx.get('token_url')"><a t-att-href="ctx['token_url']"><t t-out="ctx['token_url'] or ''"></t></a></strong>
  31. <br/><br/>
  32. If this was a mistake or you did not requested this action, please ignore this message.
  33. </div>
  34. </field>
  35. <field name="auto_delete" eval="True"/>
  36. </record>
  37. <!-- Confirm unsubscription email -->
  38. <record id="mail_template_list_unsubscribe" model="mail.template">
  39. <field name="name">Mail Group: Mailing List Unsubscription</field>
  40. <field name="model_id" ref="mail_group.model_mail_group"/>
  41. <field name="subject">Confirm unsubscription to {{ object.name }}</field>
  42. <field name="description">Sent to people who unsubscribed from a mailing group</field>
  43. <field name="body_html" type="html">
  44. <div style="margin: 0px; padding: 0px;">
  45. Hello,<br/><br/>
  46. You have requested to be unsubscribed to the mailing list <strong t-out="object.name or ''"></strong>.
  47. <br/><br/>
  48. To confirm, please visit the following link: <strong t-if="ctx.get('token_url')"><a t-att-href="ctx['token_url']"><t t-out="ctx['token_url'] or ''"></t></a></strong>.
  49. <br/><br/>
  50. If this was a mistake or you did not requested this action, please ignore this message.
  51. </div>
  52. </field>
  53. <field name="auto_delete" eval="True"/>
  54. </record>
  55. </odoo>