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.

70 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_users_search" model="ir.ui.view">
  5. <field name="inherit_id" ref="base.view_users_search"/>
  6. <field name="name">res.users.search</field>
  7. <field name="model">res.users</field>
  8. <field name="arch" type="xml">
  9. <xpath expr="//search[@string='Users']" position="inside">
  10. <filter string="Active" context="{'group_by': 'active'}"/>
  11. </xpath>
  12. </field>
  13. </record>
  14. <record id="view_users_tree" model="ir.ui.view">
  15. <field name="inherit_id" ref="base.view_users_tree"/>
  16. <field name="name">res.users.tree</field>
  17. <field name="model">res.users</field>
  18. <field name="sequence">20</field>
  19. <field name="arch" type="xml">
  20. <field name="login" position="after">
  21. <field name="active" widget="boolean_switch" options="{'quick_edit': True}"/>
  22. </field>
  23. </field>
  24. </record>
  25. <record id="view_users_form" model="ir.ui.view">
  26. <field name="inherit_id" ref="base.view_users_form"/>
  27. <field name="name">res.users.form</field>
  28. <field name="model">res.users</field>
  29. <field name="arch" type="xml">
  30. <field name="active" position="replace">
  31. <field name="active" widget="boolean_switch" options="{'quick_edit': True}"/>
  32. </field>
  33. </field>
  34. </record>
  35. <record id="view_users_tree_editable" model="ir.ui.view">
  36. <field name="name">res.users.tree</field>
  37. <field name="model">res.users</field>
  38. <field name="arch" type="xml">
  39. <tree string="Users" editable="top">
  40. <field name="name"/>
  41. <field name="login"/>
  42. <field name="lang"/>
  43. <field name="active" widget="boolean_switch" options="{'quick_edit': True}"/>
  44. </tree>
  45. </field>
  46. </record>
  47. <record id="action_res_users_tree_editable" model="ir.actions.act_window">
  48. <field name="name">Tree Editable Users</field>
  49. <field name="type">ir.actions.act_window</field>
  50. <field name="res_model">res.users</field>
  51. <field name="view_type">form</field>
  52. <field name="view_id" ref="view_users_tree_editable"/>
  53. <field name="search_view_id" ref="base.view_users_search"/>
  54. </record>
  55. <record id="action_res_users_tree_view_editable" model="ir.actions.act_window.view">
  56. <field eval="10" name="sequence"/>
  57. <field name="view_mode">tree</field>
  58. <field name="view_id" ref="view_users_tree_editable"/>
  59. <field name="act_window_id" ref="action_res_users_tree_editable"/>
  60. </record>
  61. <menuitem action="action_res_users_tree_editable"
  62. id="menu_action_res_users_tree_editable"
  63. parent="base.menu_users"/>
  64. </data>
  65. </openerp>