diff --git a/hotel_management_odoo/__manifest__.py b/hotel_management_odoo/__manifest__.py
index b153435ab..b15372188 100644
--- a/hotel_management_odoo/__manifest__.py
+++ b/hotel_management_odoo/__manifest__.py
@@ -21,7 +21,7 @@
###############################################################################
{
'name': 'Odoo17 Hotel Management',
- 'version': '17.0.1.2.5',
+ 'version': '17.0.1.2.4',
'category': 'Services',
'summary': """Hotel Management, Odoo Hotel Management, Hotel, Room Booking odoo, Amenities Odoo, Event management, Rooms, Events, Food, Booking, Odoo Hotel, Odoo17, Odoo Apps""",
'description': """The module helps you to manage rooms, amenities,
diff --git a/hotel_management_odoo/doc/RELEASE_NOTES.md b/hotel_management_odoo/doc/RELEASE_NOTES.md
index 4ec005c46..16a75e58d 100644
--- a/hotel_management_odoo/doc/RELEASE_NOTES.md
+++ b/hotel_management_odoo/doc/RELEASE_NOTES.md
@@ -20,8 +20,7 @@
#### UPDATE
- Updated the workflow maintenance request and cleaning request model(removed a field from each)
-#### 04.09.2024
-#### Version 17.0.1.2.5
+#### 14.10.2024
+#### Version 17.0.1.2.4
#### UPDATE
- - Updated the workflow in room booking line since a validation error doesnot allows booking after reserved days and
-also in room booking report since the checkin date and checkout date was not correct
\ No newline at end of file
+- Updated the invisible condition of 'create invoice' button in room booking model
\ No newline at end of file
diff --git a/hotel_management_odoo/models/room_booking_line.py b/hotel_management_odoo/models/room_booking_line.py
index 86870d97b..306d5ec63 100644
--- a/hotel_management_odoo/models/room_booking_line.py
+++ b/hotel_management_odoo/models/room_booking_line.py
@@ -150,13 +150,14 @@ class RoomBookingLine(models.Model):
rec_room_id = rec.room_line_ids.room_id
rec_checkin_date = rec.room_line_ids.checkin_date
rec_checkout_date = rec.room_line_ids.checkout_date
+
if rec_room_id and rec_checkin_date and rec_checkout_date:
# Check for conflicts with existing room lines
for line in self:
if line.id != rec.id and line.room_id == rec_room_id:
# Check if the dates overlap
- if (rec_checkin_date >= line.checkin_date >= rec_checkout_date or
- rec_checkin_date >= line.checkout_date >= rec_checkout_date):
+ if (rec_checkin_date <= line.checkin_date <= rec_checkout_date or
+ rec_checkin_date <= line.checkout_date <= rec_checkout_date):
raise ValidationError(
_("Sorry, You cannot create a reservation for "
"this date since it overlaps with another "
diff --git a/hotel_management_odoo/report/room_booking_reports.xml b/hotel_management_odoo/report/room_booking_reports.xml
index 0fd7d7092..9f5c7d18a 100644
--- a/hotel_management_odoo/report/room_booking_reports.xml
+++ b/hotel_management_odoo/report/room_booking_reports.xml
@@ -45,7 +45,7 @@