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.

41 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="portal_welcome_email" model="email.template">
  5. <field name="name">Portal Welcome Email</field>
  6. <field name="email_from">${object.company_id.name}&lt;${object.company_id.email}&gt;</field>
  7. <field name="subject">Your account at ${object.company_id.name}</field>
  8. <field name="email_to">${object.email}</field>
  9. <field name="lang">${object.lang}</field>
  10. <field name="model_id" ref="base.model_res_users"/>
  11. <field name="auto_delete" eval="True"/>
  12. <field name="body_html">
  13. <![CDATA[
  14. <p>Dear ${object.name},&nbsp;</p>
  15. <p>You have been given access to ${object.company_id.name}'s ${ctx['portal']}.</p>
  16. <p>Your login account data is:</p>
  17. <blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
  18. <div>
  19. Username: <strong>${ctx['login']}</strong>&nbsp;
  20. </div>
  21. <div>
  22. Portal: ${ctx['portal_url']}&nbsp;
  23. </div>
  24. <div>
  25. Database: ${ctx['db']}&nbsp;
  26. </div>
  27. </blockquote>
  28. <br/>
  29. You can set or change your password via the following url:<br/>
  30. ${ctx['signup_url']}<br/>
  31. <p>${ctx['welcome_message']}</p>
  32. <pre>
  33. --
  34. Automatic Email.
  35. ${object.company_id.name or ''}
  36. </pre>]]>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>