1
<?xml version="1.0" encoding="utf-8" ?>
5
<record id="threshold_value_form_view" model="ir.ui.view">
6
<field name="name">threshold.value.form.view</field>
7
<field name="model">threshold.value</field>
8
<field name="type">form</field>
9
<field name="arch" type="xml">
10
<form string="Threshold value">
12
<field name="warehouse_id" widget="selection" />
13
<field name="category_id" on_change="category_on_change(category_id)" />
14
<field name="location_id" domain="[('warehouse_id', '=', warehouse_id)]" />
15
<field name="product_id" on_change="product_on_change(product_id)"
16
attrs="{'invisible': [('category_id', '!=', False)], 'required': [('category_id', '=', False)]}" />
17
<field name="active" />
18
<field name="uom_id" attrs="{'invisible': [('category_id', '!=', False)]}" />
23
<record id="threshold_value_tree_view" model="ir.ui.view">
24
<field name="name">threshold.value.tree.view</field>
25
<field name="model">threshold.value</field>
26
<field name="type">tree</field>
27
<field name="arch" type="xml">
28
<tree string="Threshold value">
30
<field name="category_id" />
31
<field name="product_id" />
32
<field name="location_id" />
37
<record id="action_threshold_value" model="ir.actions.act_window">
38
<field name="name">Threshold value</field>
39
<field name="res_model">threshold.value</field>
40
<field name="view_type">form</field>
41
<field name="view_mode">tree,form</field>
44
<menuitem id="menu_threshold_value"
45
action="action_threshold_value"
46
parent="procurement.menu_stock_procurement" />
b'\\ No newline at end of file'