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.

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