add active field to client equipment

This commit is contained in:
Marc Durepos 2024-06-03 10:11:19 -04:00
parent f864093eb8
commit 61529d33e4

View file

@ -38,6 +38,8 @@ class Equipment(models.Model):
string='Interventions' string='Interventions'
) )
active = fields.Boolean(default=True)
@api.depends('partner_location_id') @api.depends('partner_location_id')
def _compute_partner(self): def _compute_partner(self):
for rec in self: for rec in self: