Update end_rental_contract.py
This commit is contained in:
parent
b3e8c8785b
commit
37fa31b667
|
|
@ -137,7 +137,7 @@ class EndOfRent(models.Model):
|
|||
if rec.end_line_ids:
|
||||
rec.maintenance_cost = sum([line.total for line in rec.end_line_ids])
|
||||
rec.total_amount = rec.maintenance_cost + rec.hand_cost
|
||||
@api.depends('maintenance_cost','end_line_ids.total', 'hand_cost', 'end_line_ids', 'end_line_ids.total')
|
||||
@api.onchange('maintenance_cost','end_line_ids.total', 'hand_cost', 'end_line_ids', 'end_line_ids.total')
|
||||
def _onchange_get_total_amount(self):
|
||||
for rec in self:
|
||||
if rec.end_line_ids:
|
||||
|
|
|
|||
Loading…
Reference in New Issue