You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
7.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2018 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <data>
  5. <!-- Mail templates -->
  6. <record id="template_consent" model="mail.template">
  7. <field name="name">Personal data processing consent request</field>
  8. <field name="subject">Data processing consent request for ${object.activity_id.display_name|safe}</field>
  9. <field name="model_id" ref="model_privacy_consent"/>
  10. <field name="use_default_to" eval="True"/>
  11. <field name="body_html" type="xml">
  12. <div style="background:#F3F5F6;color:#515166;padding:25px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
  13. <table style="width:600px;margin:5px auto;">
  14. <tbody>
  15. <tr>
  16. <td>
  17. <a href="/">
  18. <img src="/logo" alt="${object.activity_id.controller_id.display_name|safe}" style="vertical-align:baseline;max-width:100px;"/>
  19. </a>
  20. </td>
  21. </tr>
  22. </tbody>
  23. </table>
  24. <table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
  25. <tbody>
  26. <tr>
  27. <td colspan="2" style="padding:15px 20px 0px 20px; font-size:16px;">
  28. <p>
  29. Hello, ${object.partner_id.name|safe}
  30. </p>
  31. <p>
  32. We contacted you to ask you to give us your explicit consent to include your data in a data processing activity called
  33. <b>${object.activity_id.display_name|safe}</b>, property of
  34. <i>${object.activity_id.controller_id.display_name|safe}</i>
  35. </p>
  36. ${object.description or ""}
  37. <p>
  38. % if object.state == "answered":
  39. The last time you answered, you
  40. % elif object.state == "sent":
  41. If you do nothing, we will assume you have
  42. % endif
  43. % if object.accepted:
  44. <b>accepted</b>
  45. % else:
  46. <b>rejected</b>
  47. % endif
  48. such data processing.
  49. </p>
  50. <p>
  51. You can update your preferences below:
  52. </p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td style="padding:15px 20px 0px 20px; font-size:16px; text-align:right;">
  57. <a href="/privacy/consent/accept/" style="background-color: #449d44; padding: 12px; font-weight: 12px; text-decoration: none; color: #fff; border-radius: 5px; font-size:16px;">
  58. Accept
  59. </a>
  60. </td>
  61. <td style="padding:15px 20px 0px 20px; font-size:16px; text-align:left;">
  62. <a href="/privacy/consent/reject/" style="background-color: #d9534f; padding: 12px; font-weight: 12px; text-decoration: none; color: #fff; border-radius: 5px; font-size:16px;">
  63. Reject
  64. </a>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td colspan="2" style="padding:15px 20px 15px 20px; font-size:16px;">
  69. <p>
  70. If you need further information, please respond to this email and we will attend your request as soon as possible.
  71. </p>
  72. <p>
  73. Thank you!
  74. </p>
  75. </td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. <table style="width:600px;margin:0px auto;text-align:center;">
  80. <tbody>
  81. <tr>
  82. <td style="padding-top:10px;font-size: 12px;">
  83. <p>
  84. Sent by
  85. <a href="/" style="color:#717188;">${object.activity_id.controller_id.display_name|safe}</a>.
  86. </p>
  87. </td>
  88. </tr>
  89. </tbody>
  90. </table>
  91. </div>
  92. </field>
  93. </record>
  94. <!-- Mail subtypes -->
  95. <record id="mt_consent_consent_new" model="mail.message.subtype">
  96. <field name="name">New Consent</field>
  97. <field name="description">Privacy consent request created</field>
  98. <field name="res_model">privacy.consent</field>
  99. <field name="default" eval="False"/>
  100. <field name="hidden" eval="False"/>
  101. <field name="internal" eval="True"/>
  102. </record>
  103. <record id="mt_consent_acceptance_changed" model="mail.message.subtype">
  104. <field name="name">Acceptance Changed by Subject</field>
  105. <field name="description">Acceptance status updated by subject</field>
  106. <field name="res_model">privacy.consent</field>
  107. <field name="default" eval="False"/>
  108. <field name="hidden" eval="False"/>
  109. <field name="internal" eval="True"/>
  110. </record>
  111. <record id="mt_consent_state_changed" model="mail.message.subtype">
  112. <field name="name">State Changed</field>
  113. <field name="description">Privacy consent request state changed</field>
  114. <field name="res_model">privacy.consent</field>
  115. <field name="default" eval="False"/>
  116. <field name="hidden" eval="False"/>
  117. <field name="internal" eval="True"/>
  118. </record>
  119. <record id="mt_activity_consent_new" model="mail.message.subtype">
  120. <field name="name">New Consent</field>
  121. <field name="description">Privacy consent request created</field>
  122. <field name="res_model">privacy.activity</field>
  123. <field name="default" eval="True"/>
  124. <field name="hidden" eval="False"/>
  125. <field name="internal" eval="True"/>
  126. <field name="parent_id" ref="mt_consent_consent_new"/>
  127. <field name="relation_field">activity_id</field>
  128. </record>
  129. <record id="mt_activity_acceptance_changed" model="mail.message.subtype">
  130. <field name="name">Acceptance Changed</field>
  131. <field name="description">Privacy consent request acceptance status changed</field>
  132. <field name="res_model">privacy.activity</field>
  133. <field name="default" eval="True"/>
  134. <field name="hidden" eval="False"/>
  135. <field name="internal" eval="True"/>
  136. <field name="parent_id" ref="mt_consent_acceptance_changed"/>
  137. <field name="relation_field">activity_id</field>
  138. </record>
  139. <record id="mt_activity_state_changed" model="mail.message.subtype">
  140. <field name="name">State Changed</field>
  141. <field name="description">Privacy consent request state changed</field>
  142. <field name="res_model">privacy.activity</field>
  143. <field name="default" eval="False"/>
  144. <field name="hidden" eval="False"/>
  145. <field name="internal" eval="True"/>
  146. <field name="parent_id" ref="mt_consent_state_changed"/>
  147. <field name="relation_field">activity_id</field>
  148. </record>
  149. </data>