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.

45 lines
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ********************************************************************** -->
  3. <!--Authentification - Generate Password Module for OpenERP -->
  4. <!--Copyright (C) 2014 GRAP (http://www.grap.coop) -->
  5. <!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
  6. <!--This program is free software: you can redistribute it and/or modify -->
  7. <!--it under the terms of the GNU Affero General Public License as -->
  8. <!--published by the Free Software Foundation, either version 3 of the -->
  9. <!--License, or (at your option) any later version. -->
  10. <!--This program is distributed in the hope that it will be useful, -->
  11. <!--but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  12. <!--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
  13. <!--GNU Affero General Public License for more details. -->
  14. <!--You should have received a copy of the GNU Affero General Public License-->
  15. <!--along with this program. If not, see <http://www.gnu.org/licenses/>. -->
  16. <!-- ********************************************************************** -->
  17. <openerp>
  18. <data>
  19. <!-- Model: email.template -->
  20. <record model="email.template" id="generate_password_template" >
  21. <field name="name">Generate Password</field>
  22. <field name="model_id" ref="base.model_res_users"/>
  23. <field name="email_from"><![CDATA[${object.company_id.name} <${(object.company_id.email or user.email)|safe}>]]></field>
  24. <field name="email_to">${object.email|safe}</field>
  25. <field name="subject">OpenERP - Password Changed</field>
  26. <field name="body_html"><![CDATA[
  27. Your OpenERP credentials has been changed:
  28. <ul>
  29. <li>Login : ${object.login}</li>
  30. <li>New Password : ${ctx.get('generated_password')}</li>
  31. </ul>
  32. Please,
  33. <ul>
  34. <li>remember this password and delete this email;</li>
  35. <li>Communicate the password to your team, if you are many people to use the same credentials;</li>
  36. </ul>]]>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>