-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathir_ui_menu_view.xml
44 lines (39 loc) · 1.99 KB
/
ir_ui_menu_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="edit_menu_access_search" model="ir.ui.view">
<field name="name">ir.ui.menu.search (settings_improvement)</field>
<field name="model">ir.ui.menu</field>
<field name="inherit_id" ref="base.edit_menu_access_search"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="groups_id"/>
</xpath>
<xpath expr="//search" position="inside">
<filter string="Level 1" name="level1" domain="[('parent_id','=',False)]"/>
<filter string="Level 2" name="level2" domain="[('parent_id.parent_id','=',False)]"/>
<filter string="Leaves" name="leaves" domain="[('child_id','=',False)]"/>
<separator />
<filter string="Global" name="global" domain="[('groups_id','=',False)]"/>
<filter string="Not Global" name="not_global" domain="[('groups_id','!=',False)]"/>
<group expand="0" string="Group By...">
<filter string="Parent" context="{'group_by': 'parent_id'}"/>
</group>
</xpath>
</field>
</record>
<record id="edit_menu" model="ir.ui.view">
<field name="name">ir.ui.menu tree (settings_improvement)</field>
<field name="model">ir.ui.menu</field>
<field name="inherit_id" ref="base.edit_menu"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='complete_name']" position="replace">
<field name="parent_id"/>
<field name="name"/>
<field name="complete_name"/>
<field name="groups_id" attrs="{'invisible': [('groups_id','=',[])]}"/>
</xpath>
</field>
</record>
</data>
</openerp>