Update rental_contract.py
This commit is contained in:
parent
7b32ef8e5c
commit
fd7f96152e
|
|
@ -363,7 +363,7 @@ class RentalContract(models.Model):
|
|||
|
||||
def action_review(self):
|
||||
full = True
|
||||
if self.property_id.state in ['reserve', 'rent']:
|
||||
if self.property_id.state in ['reserve', 'rent'] and self.property_id.contract_counts>1:
|
||||
raise exceptions.ValidationError(_("Property is already reserved or rented"))
|
||||
#
|
||||
for units in self.property_id.unit_ids:
|
||||
|
|
|
|||
Loading…
Reference in New Issue