summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-08-12 17:27:36 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-08-12 17:27:36 +0700
commit1b5a1035452c00f4650d62caaf0eaff74cbc94b8 (patch)
tree1430006a5aa172e46f9b7ae5d3688ae89725747b
parent1fb0b646ecff155204208b25d8127428e380e613 (diff)
Fix view stock vendor
-rw-r--r--indoteknik_custom/views/stock_vendor.xml13
1 files changed, 8 insertions, 5 deletions
diff --git a/indoteknik_custom/views/stock_vendor.xml b/indoteknik_custom/views/stock_vendor.xml
index 70970fb6..5f3269f5 100644
--- a/indoteknik_custom/views/stock_vendor.xml
+++ b/indoteknik_custom/views/stock_vendor.xml
@@ -15,9 +15,10 @@
<field name="name">Stock vendor</field>
<field name="model">stock.vendor</field>
<field name="arch" type="xml">
- <tree>
+ <tree create="false">
+ <field name="quantity" widget="badge" decoration-primary="True"/>
<field name="product_variant_id"/>
- <field name="quantity"/>
+ <field name="__last_update"/>
</tree>
</field>
</record>
@@ -26,12 +27,13 @@
<field name="name">Stock vendor</field>
<field name="model">stock.vendor</field>
<field name="arch" type="xml">
- <form>
+ <form create="false" edit="false">
<sheet>
<group>
<group>
<field name="product_variant_id"/>
- <field name="quantity"/>
+ <field name="quantity" widget="badge" decoration-primary="True"/>
+ <field name="__last_update"/>
</group>
<group></group>
</group>
@@ -44,6 +46,7 @@
name="Stock vendor"
parent="sale.product_menu_catalog"
sequence="3"
- action="stock_vendor_action"/>
+ action="stock_vendor_action"
+ />
</data>
</odoo> \ No newline at end of file