diff --git a/hotel_management_odoo/__manifest__.py b/hotel_management_odoo/__manifest__.py
index c1367803f..b153435ab 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.1.4',
+ 'version': '17.0.1.2.5',
'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 3fa57ab68..4ec005c46 100644
--- a/hotel_management_odoo/doc/RELEASE_NOTES.md
+++ b/hotel_management_odoo/doc/RELEASE_NOTES.md
@@ -18,4 +18,10 @@
#### 04.07.2024
#### Version 17.0.1.1.3
#### UPDATE
- - Updated the workflow maintenance request and cleaning request model(removed a field from each)
\ No newline at end of file
+ - Updated the workflow maintenance request and cleaning request model(removed a field from each)
+
+#### 04.09.2024
+#### Version 17.0.1.2.5
+#### 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
diff --git a/hotel_management_odoo/models/room_booking_line.py b/hotel_management_odoo/models/room_booking_line.py
index 306d5ec63..86870d97b 100644
--- a/hotel_management_odoo/models/room_booking_line.py
+++ b/hotel_management_odoo/models/room_booking_line.py
@@ -150,14 +150,13 @@ 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 9f5c7d18a..0fd7d7092 100644
--- a/hotel_management_odoo/report/room_booking_reports.xml
+++ b/hotel_management_odoo/report/room_booking_reports.xml
@@ -45,7 +45,7 @@