Skip to content

Commit

Permalink
BAH-3963 | Fix. Disable creation of lots from Sales page (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 authored Jul 9, 2024
1 parent b4192a4 commit 3fc0156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bahmni_sale/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@


<xpath expr="//field[@name='order_line']/tree/field[@name='qty_delivered']" position="after">
<field name="lot_id" context = "{'parent_shop_id':parent.shop_id}" domain="['|',('expiration_date','&gt;', datetime.datetime.combine(context_today(), datetime.time(23,59,59))),('expiration_date','=',False),('product_qty','>' ,0),('product_id','=',product_id)]"/>
<field name="lot_id" context = "{'parent_shop_id':parent.shop_id}" options="{'no_quick_create':True,'no_create_edit':True,'no_open': True,}" domain="['|',('expiration_date','&gt;', datetime.datetime.combine(context_today(), datetime.time(23,59,59))),('expiration_date','=',False),('product_qty','>' ,0),('product_id','=',product_id)]"/>
<field name="expiry_date" force_save="1" readonly="1"/>
</xpath>
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='price_unit']" position="after">
<field name="lot_id" context = "{'parent_shop_id':parent.shop_id}" domain="['|',('expiration_date','&gt;', datetime.datetime.combine(context_today(), datetime.time(23,59,59))),('expiration_date','=',False),('product_qty','>' ,0),('product_id','=',product_id)]"/>
<field name="lot_id" context = "{'parent_shop_id':parent.shop_id}" options="{'no_quick_create':True,'no_create_edit':True,'no_open': True,}" domain="['|',('expiration_date','&gt;', datetime.datetime.combine(context_today(), datetime.time(23,59,59))),('expiration_date','=',False),('product_qty','>' ,0),('product_id','=',product_id)]"/>
<field name="expiry_date" readonly="1"/>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='product_template_id']" position="replace">
Expand Down

0 comments on commit 3fc0156

Please sign in to comment.