summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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