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.

46 lines
2.2 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: res.users -->
  20. <record id="view_res_users_form" model="ir.ui.view">
  21. <field name="model">res.users</field>
  22. <field name="inherit_id" ref="base.view_users_form_simple_modif" />
  23. <field name="arch" type="xml">
  24. <button name="preference_change_password" position="attributes">
  25. <attribute name="groups">base.group_system</attribute>
  26. </button>
  27. </field>
  28. </record>
  29. <record id="view_res_users_tree" model="ir.ui.view">
  30. <field name="model">res.users</field>
  31. <field name="inherit_id" ref="base.view_users_tree" />
  32. <field name="arch" type="xml">
  33. <field name="login_date" position="after">
  34. <button name="generate_password"
  35. icon="terp-mail-message-new" type="object" string="Generate Password and Send Mail"/>
  36. </field>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>