summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-10-17 11:19:23 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-10-17 11:19:23 +0700
commit464e80d0cb180335dada9878272c62f5db9b9e73 (patch)
treefbdca740cfcdded0fcb90048f6d61b8461885320 /indoteknik_custom/views
parenteefe129e31b112d80038fc3aecf2aee4c4e10108 (diff)
product monitoring
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/product_monitoring.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_monitoring.xml b/indoteknik_custom/views/product_monitoring.xml
new file mode 100644
index 00000000..779a7dd7
--- /dev/null
+++ b/indoteknik_custom/views/product_monitoring.xml
@@ -0,0 +1,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> \ No newline at end of file