mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_available_unreserved make field optional in tree view
This commit is contained in:
@@ -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 < 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 < 0"
|
||||
decoration-warning="virtual_available == 0"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user