[IMP] stock_available_unreserved make field optional in tree view

This commit is contained in:
remi-filament
2021-11-10 11:21:57 +01:00
parent 0e51aa1e62
commit df7a1eb282

View File

@@ -6,7 +6,12 @@
<field name="inherit_id" ref="stock.view_stock_product_template_tree" />
<field name="arch" type="xml">
<field name="qty_available" position="after">
<field name="qty_available_not_res" />
<field
name="qty_available_not_res"
attrs="{'invisible':[('type', '!=', 'product')]}"
optional="show"
decoration-danger="qty_available_not_res &lt; 0"
/>
</field>
</field>
</record>
@@ -42,7 +47,13 @@
<field name="inherit_id" ref="stock.view_stock_product_tree" />
<field name="arch" type="xml">
<field name="qty_available" position="after">
<field name="qty_available_not_res" />
<field
name="qty_available_not_res"
attrs="{'invisible':[('type', '!=', 'product')]}"
optional="show"
decoration-danger="virtual_available &lt; 0"
decoration-warning="virtual_available == 0"
/>
</field>
</field>
</record>