diff --git a/bross_hms/models/hms_models.py b/bross_hms/models/hms_models.py index 8ea6ca0..1944b04 100644 --- a/bross_hms/models/hms_models.py +++ b/bross_hms/models/hms_models.py @@ -201,7 +201,7 @@ class HmsBookings(models.Model): booking.show_status = False if booking.roomStays.filtered(lambda stay: stay.bookingStatus.name == 'Confirmed'): booking.booking_status = self.env['hms.booking.status'].search([('name', '=', 'Confirmed')]).id - booking.booking_status_text = f"Confirmed {len(booking.roomStays.filtered(lambda stay: stay.bookingStatus.name == 'Confirmed'))} / {len(booking.roomStays)}" + booking.booking_status_text = f"Confirmed ({len(booking.roomStays.filtered(lambda stay: stay.bookingStatus.name == 'Confirmed'))} / {len(booking.roomStays)})" booking.show_booking_status = True elif not booking.roomStays.filtered(lambda stay: stay.bookingStatus.name != 'Cancelled'): booking.booking_status = self.env['hms.booking.status'].search([('name', '=', 'Cancelled')]).id