Update end_rental_contract.py
This commit is contained in:
parent
d8513d782c
commit
aab63f1309
|
|
@ -99,7 +99,7 @@ class EndOfRent(models.Model):
|
|||
rec.invoice_id = invoice.id
|
||||
rec.write({'state': 'done'})
|
||||
|
||||
elif (rec.insurance_amount == 0.0 or rec.remain_amount==0.0) and not rec.maintenance:
|
||||
elif (rec.insurance_amount == 0.0 or rec.remain_amount==0.0) and not rec.maintenance:
|
||||
rec.write({'state': 'done'})
|
||||
|
||||
elif rec.remain_amount < 0.0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue