Skip to content

Commit

Permalink
Merge PR #16 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 21, 2023
2 parents b968ac1 + 4557e2a commit a8a6c98
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 a8a6c98

Please sign in to comment.