Update rental_contract
This commit is contained in:
parent
d64a980682
commit
58fe0ce7dd
|
|
@ -403,6 +403,8 @@ class RentalContract(models.Model):
|
|||
self.insurance_amount = (self.insurance_cost / 100.0) * self.cal_rent_amount
|
||||
elif self.insurance and self.insurance == 'fixed':
|
||||
self.insurance_amount = self.insurance_cost
|
||||
def action_draft(self):
|
||||
self.write({'state': 'draft'})
|
||||
|
||||
def action_cancel(self):
|
||||
if self.rent_payment_ids:
|
||||
|
|
|
|||
Loading…
Reference in New Issue