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.

109 lines
6.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
  3. Serpent Consulting Services Pvt. Ltd.
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) -->
  5. <odoo>
  6. <!--Default Notification Email template -->
  7. <record id="mail.mail_template_data_notification_email_default" model="mail.template">
  8. <field name="body_html"><![CDATA[
  9. <div itemscope itemtype="http://schema.org/EmailMessage">
  10. <div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
  11. % if ctx.get('button_access'):
  12. <link itemprop="target" href="${ctx['button_access']['url']}"/>
  13. <link itemprop="url" href="${ctx['button_access']['url']}"/>
  14. % endif
  15. <meta itemprop="name" content="View ${ctx['model_name']}"/>
  16. </div>
  17. </div>
  18. <div summary="o_mail_notification" style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%; color:#777777">
  19. <table cellspacing="0" cellpadding="0" style="width:600px; border-collapse:collapse; background:inherit; color:inherit">
  20. <tbody><tr>
  21. <td valign="center" width="270" style="padding:5px 10px 5px 5px;font-size: 30px">
  22. % if ctx.get('button_access'):
  23. <a href="${ctx['button_access']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_access']['title']}</a>
  24. % endif
  25. % if ctx.get('button_follow'):
  26. <a href="${ctx['button_follow']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_follow']['title']}</a>
  27. % elif ctx.get('button_unfollow'):
  28. <a href="${ctx['button_unfollow']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_unfollow']['title']}</a>
  29. % endif
  30. % if not ctx.get('button_access') and not ctx.get('button_follow') and not ctx.get('button_unfollow') and ctx.get('model_name'):
  31. <p style="padding: 5px 10px; font-size: 12px;">
  32. About <strong>${ctx['model_name']}
  33. % if ctx.get('record_name'):
  34. : ${ctx['record_name']}
  35. % endif
  36. </strong>
  37. </p>
  38. % endif
  39. </td>
  40. <td valign="center" align="right" width="270" style="padding:5px 15px 5px 10px; font-size: 12px;">
  41. <p>
  42. % if ctx.get('actions'):
  43. % for action in ctx['actions']:
  44. <a href="${action['url']}" style="text-decoration:none; color: #a24689;"><strong>${action['title']}</strong></a>
  45. %if cmp(len(ctx['actions']), 1) == 1 and cmp(len(ctx['actions']), loop.index) == 1:
  46. |
  47. % endif
  48. % endfor
  49. % else:
  50. <strong>Sent by</strong>
  51. % if ctx.get('website_url'):
  52. <a href="${ctx['website_url']}" style="text-decoration:none; color: #a24689;">
  53. % endif
  54. <strong>${ctx.get('company_name')}</strong>
  55. % if ctx.get('website_url'):
  56. </a>
  57. % endif
  58. % endif
  59. </p>
  60. </td>
  61. </tr>
  62. </tbody></table>
  63. </div>
  64. <div style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%; color:#777777">
  65. <table cellspacing="0" cellpadding="0" style="vertical-align:top; padding:0px; border-collapse:collapse; background:inherit; color:inherit">
  66. <tbody><tr>
  67. <td valign="top" style="width:600px; padding:5px 10px 5px 5px;">
  68. <div>
  69. <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0;margin:15px auto;padding:0">
  70. </div>
  71. </td>
  72. </tr></tbody>
  73. </table>
  74. </div>
  75. <div style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777">
  76. <table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; width:600px; border-collapse:collapse; background:inherit; color:inherit">
  77. <tbody><tr>
  78. <td style="padding:5px 10px 5px 5px;font-size: 14px;">
  79. ${object.body | safe}
  80. % if ctx.get('tracking'):
  81. <ul>
  82. % for tracking in ctx['tracking']
  83. <li>${tracking[0]} : ${tracking[1]} -&gt; ${tracking[2]}</li>
  84. % endfor
  85. </ul>
  86. % endif
  87. </td>
  88. </tr></tbody>
  89. </table>
  90. </div>
  91. % if ctx.get('signature'):
  92. <div style="padding:0px; width:600px;margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777">
  93. <table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; width:600px; border-collapse:collapse; background:inherit; color:inherit">
  94. <tbody><tr>
  95. <td style="padding:5px 10px 5px 5px;font-size: 14px; text-align: left;">
  96. ${ctx['signature'] | safe}
  97. </td>
  98. </tr></tbody>
  99. </table>
  100. </div>
  101. % endif
  102. ]]>
  103. </field>
  104. </record>
  105. </odoo>