-
Notifications
You must be signed in to change notification settings - Fork 28
/
ir_model.xml
54 lines (49 loc) · 2.67 KB
/
ir_model.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
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="view_model_data_search" model="ir.ui.view">
<field name="name">ir.model.data search (settings_improvement)</field>
<field name="model">ir.model.data</field>
<field name="inherit_id" ref="base.view_model_data_search"/>
<field name="arch" type="xml">
<xpath expr="//filter[@string='Updatable']" position="before">
<filter name="non_updatable" string="Non Updatable" domain="[('noupdate', '!=', False)]"/>
</xpath>
<xpath expr="//field[@name='noupdate']" position="after">
<field name="model" string="Exact Model" filter_domain="[('model','=',self)]"/>
<field name="module" string="Exact Module" filter_domain="[('module','=',self)]"/>
</xpath>
</field>
</record>
<record id="view_model_data_list" model="ir.ui.view">
<field name="name">ir.model.data tree (settings_improvement)</field>
<field name="model">ir.model.data</field>
<field name="inherit_id" ref="base.view_model_data_list"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='module']" position="replace"/>
<xpath expr="//field[@name='model']" position="replace">
<field name="module"/>
<field name="model"/>
</xpath>
</field>
</record>
<record id="view_model_form" model="ir.ui.view">
<field name="name">ir.model form (settings_improvement)</field>
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='modules'][1]" position="after">
<button string="⇒ Model Data" name="%(base.action_model_data)d" class="oe_link"
type="action" context="{'search_default_display_name': model,
'default_model': model}"/>
<button string="⇒ Model Constraints" name="%(base.action_model_constraint)d" class="oe_link"
type="action" context="{'search_default_model': active_id,
'default_model': active_id}"/>
</xpath>
</field>
</record>
<record id="base.action_model_data" model="ir.actions.act_window">
<field name="search_view_id" ref="base.view_model_data_search"/>
</record>
</data>
</openerp>