Skip to content

Commit

Permalink
[16.0][FIX] stock_available, fix installation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOForgeFlow committed Nov 17, 2023
1 parent b968ac1 commit 4557e2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
13 changes: 4 additions & 9 deletions stock_available/views/product_product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,11 @@
<field name="model">product.product</field>
<field name="inherit_id" ref="stock.view_stock_product_tree" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute
name="decoration-danger"
>virtual_available&lt;0 or immediately_usable_qty&lt;0</attribute>
<attribute
name="decoration-info"
>virtual_available&gt;=0 or immediately_usable_qty&gt;0</attribute>
</tree>
<field name="virtual_available" position="after">
<field name="immediately_usable_qty" />
<field
name="immediately_usable_qty"
decoration-danger="immediately_usable_qty &lt; 0"
/>
</field>
</field>
</record>
Expand Down
13 changes: 4 additions & 9 deletions stock_available/views/product_template_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,11 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="stock.view_stock_product_template_tree" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute
name="decoration-danger"
>virtual_available&lt;0 or immediately_usable_qty&lt;0</attribute>
<attribute
name="decoration-info"
>virtual_available&gt;=0 or immediately_usable_qty&gt;0</attribute>
</tree>
<field name="virtual_available" position="after">
<field name="immediately_usable_qty" />
<field
name="immediately_usable_qty"
decoration-danger="immediately_usable_qty &lt; 0"
/>
</field>
</field>
</record>
Expand Down

0 comments on commit 4557e2a

Please sign in to comment.