From 58dd5bc763d92fa04252f30367bda4ddffd35a32 Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:21:16 +0300 Subject: [PATCH] Update rental_contract.py --- .../property_management/models/rental_contract.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/odex25_realstate/property_management/models/rental_contract.py b/odex25_realstate/property_management/models/rental_contract.py index 367a11229..800dff1db 100644 --- a/odex25_realstate/property_management/models/rental_contract.py +++ b/odex25_realstate/property_management/models/rental_contract.py @@ -348,12 +348,14 @@ class RentalContract(models.Model): raise exceptions.ValidationError( _("Rent payment %s is not equal the rent total amount %s ") % (rent_payment, total_rent)) if total_service != service_payment: - raise exceptions.ValidationError( - _("Service payment %s is not equal the rent total service amount %s ") % ( - service_payment, total_service)) + pass + # raise exceptions.ValidationError( + # _("Service payment %s is not equal the rent total service amount %s ") % ( + # service_payment, total_service)) if total_water != water_payment: - raise exceptions.ValidationError( - _("Water cost to pay %s is not equal the rent total water cost %s ") % (water_payment, total_water)) + pass + # raise exceptions.ValidationError( + # _("Water cost to pay %s is not equal the rent total water cost %s ") % (water_payment, total_water)) self.write({'state': 'review'}) def action_submit(self):