Update rental_contract.py
This commit is contained in:
parent
d404662a79
commit
4c55cc6670
|
|
@ -68,7 +68,7 @@ class RentalContract(models.Model):
|
|||
_inherit = ['mail.thread', 'mail.activity.mixin']
|
||||
_order = "id desc"
|
||||
|
||||
@api.depends('contract_end_date')
|
||||
@api.depends('date_to','state')
|
||||
def _compute_is_today_end_date(self):
|
||||
for record in self:
|
||||
record.is_today_end_date = record.date_to == date.today()
|
||||
|
|
|
|||
Loading…
Reference in New Issue