From c83651f52e7a62f5f83c6d61ab989199abf03be5 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Fri, 23 Feb 2024 20:24:16 +0530 Subject: [PATCH] BAH-3521 | Fix. Yesterday filter --- bahmni_sale/views/custom_filters.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bahmni_sale/views/custom_filters.xml b/bahmni_sale/views/custom_filters.xml index 797d304..85597bf 100644 --- a/bahmni_sale/views/custom_filters.xml +++ b/bahmni_sale/views/custom_filters.xml @@ -7,9 +7,10 @@ - + + domain="[('create_date','>=',(datetime.date.today()-datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d 00:00:00')),('create_date','<=',(datetime.date.today()-datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d 23:59:59'))]"/> @@ -22,9 +23,10 @@ - + + domain="[('create_date','>=',(datetime.date.today()-datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d 00:00:00')),('create_date','<=',(datetime.date.today()-datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d 23:59:59'))]"/> @@ -35,7 +37,9 @@ - {'move_type':'out_invoice', 'journal_type': 'sale', 'readonly_by_pass': True, 'search_default_today_invoices':1} + {'move_type':'out_invoice', 'journal_type': 'sale', 'readonly_by_pass': True, + 'search_default_today_invoices':1} +