mail_template_data.xml 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="mail_template_data_portal_welcome" model="mail.template">
  5. <field name="name">Portal: User Invite</field>
  6. <field name="model_id" ref="portal.model_portal_wizard_user"/>
  7. <field name="subject">Your account at {{ object.user_id.company_id.name }}</field>
  8. <field name="email_to">{{ object.user_id.email_formatted }}</field>
  9. <field name="description">Invitation email to contacts to create a user account</field>
  10. <field name="body_html" type="html">
  11. <table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
  12. <table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
  13. <tbody>
  14. <!-- HEADER -->
  15. <tr>
  16. <td align="center" style="min-width: 590px;">
  17. <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
  18. <tr><td valign="middle">
  19. <span style="font-size: 10px;">Your Account</span><br/>
  20. <span style="font-size: 20px; font-weight: bold;" t-out="object.user_id.name or ''">Marc Demo</span>
  21. </td><td valign="middle" align="right">
  22. <img t-attf-src="/logo.png?company={{ object.user_id.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.user_id.company_id.name"/>
  23. </td></tr>
  24. <tr><td colspan="2" style="text-align:center;">
  25. <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:16px 0px 16px 0px;"/>
  26. </td></tr>
  27. </table>
  28. </td>
  29. </tr>
  30. <!-- CONTENT -->
  31. <tr>
  32. <td align="center" style="min-width: 590px;">
  33. <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
  34. <tr><td valign="top" style="font-size: 13px;">
  35. <div>
  36. Dear <t t-out="object.user_id.name or ''">Marc Demo</t>,<br/> <br/>
  37. Welcome to <t t-out="object.user_id.company_id.name">YourCompany</t>'s Portal!<br/><br/>
  38. An account has been created for you with the following login: <t t-out="object.user_id.login">demo</t><br/><br/>
  39. Click on the button below to pick a password and activate your account.
  40. <div style="margin: 16px 0px 16px 0px; text-align: center;">
  41. <a t-att-href="object.user_id.signup_url" style="display: inline-block; padding: 10px; text-decoration: none; font-size: 12px; background-color: #875A7B; color: #fff; border-radius: 5px;">
  42. <strong>Activate Account</strong>
  43. </a>
  44. </div>
  45. <t t-out="object.wizard_id.welcome_message or ''">Welcome to our company's portal.</t>
  46. </div>
  47. </td></tr>
  48. <tr><td style="text-align:center;">
  49. <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: 16px 0px 16px 0px;"/>
  50. </td></tr>
  51. </table>
  52. </td>
  53. </tr>
  54. <!-- FOOTER -->
  55. <tr>
  56. <td align="center" style="min-width: 590px;">
  57. <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
  58. <tr><td valign="middle" align="left">
  59. <t t-out="object.user_id.company_id.name or ''">YourCompany</t>
  60. </td></tr>
  61. <tr><td valign="middle" align="left" style="opacity: 0.7;">
  62. <t t-out="object.user_id.company_id.phone or ''">+1 650-123-4567</t>
  63. <t t-if="object.user_id.company_id.email">
  64. | <a t-attf-href="'mailto:%s' % {{ object.user_id.company_id.email }}" style="text-decoration:none; color: #454748;" t-out="object.user_id.company_id.email or ''">info@yourcompany.com</a>
  65. </t>
  66. <t t-if="object.user_id.company_id.website">
  67. | <a t-attf-href="'%s' % {{ object.user_id.company_id.website }}" style="text-decoration:none; color: #454748;" t-out="object.user_id.company_id.website or ''">http://www.example.com</a>
  68. </t>
  69. </td></tr>
  70. </table>
  71. </td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. </td></tr>
  76. <!-- POWERED BY -->
  77. <tr><td align="center" style="min-width: 590px;">
  78. <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
  79. <tr><td style="text-align: center; font-size: 13px;">
  80. Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=portalinvite" style="color: #875A7B;">Odoo</a>
  81. </td></tr>
  82. </table>
  83. </td></tr>
  84. </table>
  85. </field>
  86. <field name="lang">{{ object.partner_id.lang }}</field>
  87. <field name="auto_delete" eval="True"/>
  88. </record>
  89. </data>
  90. </odoo>