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.

186 lines
9.0 KiB

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