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.

32 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).-->
  3. <odoo>
  4. <record id="view_res_users_form_inherit_profile" model="ir.ui.view">
  5. <field name="name">res.users.form.inherit</field>
  6. <field name="model">res.users</field>
  7. <field name="inherit_id" ref="base.view_users_form" />
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='role_line_ids']" position="before">
  10. <group>
  11. <field
  12. name="profile_ids"
  13. widget="many2many_tags"
  14. attrs="{'readonly': True}"
  15. />
  16. <field
  17. name="profile_id"
  18. domain="[('id', 'in', profile_ids)]"
  19. options="{'no_create_edit': True, 'no_open': True}"
  20. />
  21. </group>
  22. </xpath>
  23. <xpath
  24. expr="//field[@name='role_line_ids']//field[@name='is_enabled']"
  25. position="after"
  26. >
  27. <field name="profile_id" />
  28. </xpath>
  29. </field>
  30. </record>
  31. </odoo>