mail_template_data.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="mail_template_totp_invite" model="mail.template">
  5. <field name="name">Settings: 2Fa Invitation</field>
  6. <field name="model_id" ref="base.model_res_users" />
  7. <field name="email_from">{{ (object.company_id.email_formatted or user.email_formatted) }}</field>
  8. <field name="subject">Invitation to activate two-factor authentication on your Odoo account</field>
  9. <field name="partner_to">{{ object.partner_id.id }}</field>
  10. <field name="lang">{{ object.partner_id.lang }}</field>
  11. <field name="auto_delete" eval="True"/>
  12. <field name="body_html" type="html">
  13. <div style="margin: 0px; padding: 0px; font-size: 13px;">
  14. <p style="margin: 0px; padding: 0px; font-size: 13px;">
  15. Dear <t t-out="object.partner_id.name or ''"></t><br/><br/>
  16. <t t-out="user.name or ''"></t> requested you activate two-factor authentication to protect your account.<br/><br/>
  17. Two-factor Authentication ("2FA") is a system of double authentication.
  18. The first one is done with your password and the second one with a code you get from a dedicated mobile app.
  19. Popular ones include Authy, Google Authenticator or the Microsoft Authenticator.
  20. <p style="margin: 16px 0px 16px 0px; text-align: center;">
  21. <a t-att-href="object.get_totp_invite_url()"
  22. style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
  23. Activate my two-factor Authentication
  24. </a>
  25. </p>
  26. </p>
  27. </div>
  28. </field>
  29. </record>
  30. </data>
  31. </odoo>