Update rental_contract.py
This commit is contained in:
parent
43af5e7997
commit
d404662a79
|
|
@ -72,6 +72,8 @@ class RentalContract(models.Model):
|
|||
def _compute_is_today_end_date(self):
|
||||
for record in self:
|
||||
record.is_today_end_date = record.date_to == date.today()
|
||||
if record.state=='renewed':
|
||||
record.is_today_end_date = False
|
||||
|
||||
@api.onchange('rent_method')
|
||||
def onchange_rent_method(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue