forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stock_level_configuration_view.xml
41 lines (40 loc) · 1.7 KB
/
stock_level_configuration_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="configuration_stock_level_view">
<field name="name">stock.level.configuration.form</field>
<field name="model">stock.level.configuration</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<field name="stock_location_id" />
<field name="product_field" domain="[('model', 'in', ['product.product', 'product.tempalte'])]" />
</form>
</field>
</record>
<record model="ir.ui.view" id="configuration_stock_level_view_tree">
<field name="name">stock.level.configuration.tree</field>
<field name="model">stock.level.configuration</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree>
<field name="stock_location_id" />
<field name="product_field" domain="[('model', 'in', ['product.product', 'product.tempalte'])]" />
</tree>
</field>
</record>
<record id="action_configuration_stock_level" model="ir.actions.act_window">
<field name="name">Custom Stock Level configuration</field>
<field name="res_model">stock.level.configuration</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field eval="configuration_stock_level_view_tree" name="view_id"/>
</record>
<menuitem
name="Custom Stock Level configuration"
id="action_configuration_stock_level_menu"
parent="stock.menu_stock_inventory_control"
action="action_configuration_stock_level"
/>
</data>
</openerp>