Skip to content

Commit

Permalink
BAH-3746 | Add decoration to show order lines in red when quantity is…
Browse files Browse the repository at this point in the history
… zero (#149)
  • Loading branch information
mohan-13 authored Apr 10, 2024
1 parent 3872a52 commit c9004c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bahmni_sale/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@
<xpath expr="//field[@name='payment_term_id']" position="after">
<field name="shop_id" attrs="{'readonly': [('state', 'not in', ['draft', 'sent'])]}"/>
</xpath>




<xpath expr="//tree" position="attributes">
<attribute name="decoration-danger">product_uom_qty&lt;=0</attribute>
<attribute name="decoration-bf">product_uom_qty&lt;=0</attribute>
<attribute name="decoration-it">product_uom_qty&lt;=0</attribute>
</xpath>

<xpath expr="//group[@name='note_group']" position="replace">
<group name="note_group" col="6">
<group name="discount" colspan="2">
Expand Down

0 comments on commit c9004c5

Please sign in to comment.