-
-
Notifications
You must be signed in to change notification settings - Fork 732
/
Copy pathstock_location.xml
51 lines (51 loc) · 2.04 KB
/
stock_location.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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="stock_location_form_inherit" model="ir.ui.view">
<field name="name">stock.location.zone</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form" />
<field name="arch" type="xml">
<field name="scrap_location" position="before">
<field name="is_zone" />
</field>
<field name="usage" position="after">
<field name="location_kind" />
<field name="zone_location_id" />
<field name="area_location_id" />
</field>
</field>
</record>
<record id="view_location_search" model="ir.ui.view">
<field name="name">view.location.search.inherit</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_search" />
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<field name="location_kind" />
<field name="is_zone" />
<field name="zone_location_id" />
<field name="area_location_id" />
<group expand="0" string="Group By">
<filter
string="Location Kind"
name="location_kind"
domain="[]"
context="{'group_by':'location_kind'}"
/>
<filter
string="Zone location"
name="zone_location"
domain="[]"
context="{'group_by':'zone_location_id'}"
/>
<filter
string="Area location"
name="area_location"
domain="[]"
context="{'group_by':'area_location_id'}"
/>
</group>
</xpath>
</field>
</record>
</odoo>