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.
|
|
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <record id="view_users_search" model="ir.ui.view"> <field name="inherit_id" ref="base.view_users_search"/> <field name="name">res.users.search</field> <field name="model">res.users</field> <field name="arch" type="xml"> <xpath expr="//search[@string='Users']" position="inside"> <filter string="Active" context="{'group_by': 'active'}"/> </xpath> </field> </record>
<record id="view_users_tree" model="ir.ui.view"> <field name="inherit_id" ref="base.view_users_tree"/> <field name="name">res.users.tree</field> <field name="model">res.users</field> <field name="sequence">20</field> <field name="arch" type="xml"> <field name="login" position="after"> <field name="active" widget="boolean_switch" options="{'quick_edit': True, 'extra': {'onText': 'Yes', 'offText': 'No'}}"/> </field> </field> </record> <record id="view_users_form" model="ir.ui.view"> <field name="inherit_id" ref="base.view_users_form"/> <field name="name">res.users.form</field> <field name="model">res.users</field> <field name="arch" type="xml"> <field name="active" position="replace"> <field name="active" widget="boolean_switch" readonly="0" options="{'quick_edit': True, 'extra': {'onText': 'Yes', 'offText': 'No'}}"/> </field> </field> </record>
<record id="view_users_tree_editable" model="ir.ui.view"> <field name="name">res.users.tree</field> <field name="model">res.users</field> <field name="arch" type="xml"> <tree string="Users" editable="top"> <field name="name"/> <field name="login"/> <field name="lang"/> <field name="active" widget="boolean_switch" options="{'quick_edit': True, 'extra': {'onText': 'Yes', 'offText': 'No'}}"/> </tree> </field> </record>
<record id="action_res_users_tree_editable" model="ir.actions.act_window"> <field name="name">Tree Editable Users</field> <field name="type">ir.actions.act_window</field> <field name="res_model">res.users</field> <field name="view_type">form</field> <field name="view_id" ref="view_users_tree_editable"/> <field name="search_view_id" ref="base.view_users_search"/> </record> <record id="action_res_users_tree_view_editable" model="ir.actions.act_window.view"> <field eval="10" name="sequence"/> <field name="view_mode">tree</field> <field name="view_id" ref="view_users_tree_editable"/> <field name="act_window_id" ref="action_res_users_tree_editable"/> </record>
<menuitem action="action_res_users_tree_editable" id="menu_action_res_users_tree_editable" parent="base.menu_users"/> </data> </openerp>
|