blob: 779a7dd7ce4ba1ae02ae14f0999bfda1f06fca62 (
plain)
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
55
|
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="product_monitoring_tree" model="ir.ui.view">
<field name="name">product.monitoring.tree</field>
<field name="model">product.monitoring</field>
<field name="arch" type="xml">
<tree create="false" multi_edit="1">
<field name="product_id"/>
<field name="outgoing_qty"/>
<field name="incoming_qty"/>
<field name="qty_available"/>
<field name="qty_upcoming"/>
<field name="status_stock"
widget="badge"
decoration-danger="status_stock == 'outgoing_gt_stock'"
decoration-success="status_stock == 'outgoing_lt_stock'"
/>
</tree>
</field>
</record>
<record id="product_monitoring_form" model="ir.ui.view">
<field name="name">product.monitoring.form</field>
<field name="model">product.monitoring</field>
<field name="arch" type="xml">
<form create="false" edit="false">
<sheet>
<group>
<group>
<field name="product_id"/>
<field name="outgoing_qty"/>
<field name="incoming_qty"/>
<field name="qty_available"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="product_monitoring_action" model="ir.actions.act_window">
<field name="name">Product Monitoring</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.monitoring</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="menu_product_monitoring_in_purchase"
name="Product Monitoring"
parent="menu_monitoring_in_purchase"
sequence="1"
action="product_monitoring_action"
/>
</odoo>
|