Skip to content

Commit

Permalink
[IMP][16.0] hotel_reservation:-hotel_reservation_view.xml improved th…
Browse files Browse the repository at this point in the history
…e filter domain for checkin and checkout field.
  • Loading branch information
pavan-serpentcs committed Jul 12, 2024
1 parent b2ad421 commit ef96257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hotel_reservation/views/hotel_reservation_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<filter
name='current_reservations'
string="Current Reservations"
domain="[('checkout','&gt;=',datetime.datetime.now().replace(hour=0, minute=0, second=0)),('checkin','&lt;=',datetime.datetime.now().replace(hour=23, minute=59, second=59))]"
domain="[('checkout', '&gt;=', (datetime.datetime.now().strftime('%%Y-%%m-%%d 00:00:00'))), ('checkin', '&lt;=', (datetime.datetime.now().strftime('%%Y-%%m-%%d 23:59:59')))]"
help="Current Reservations"
/>
<filter name='draft' domain="[('state','=','draft')]" string="Draft" />
Expand Down

0 comments on commit ef96257

Please sign in to comment.