Merge PR #1304 into 14.0

Signed-off-by rousseldenis
This commit is contained in:
OCA-git-bot
2022-03-14 08:04:59 +00:00

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>