Update rental_contract.py
This commit is contained in:
parent
4a213117ec
commit
58dd5bc763
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue