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
|
<?xml version='1.0' encoding='UTF-8'?>
<openerp>
<data>
<record model="ir.ui.view" id="view_stock_location_inherit3">
<field name="name">view.stock.location.inherit3</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="code"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_location_search_inherit3">
<field name="name">view.location.search.inherit3</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_search"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="replace">
<field name="name" filter_domain="['|', ('name','ilike',self),('code','ilike',self)]"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_location_tree_inherit3">
<field name="name">view.location.tree.inherit3</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_tree2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='complete_name']" position="after">
<field name="code"/>
</xpath>
</field>
</record>
</data>
</openerp>
|