@ -161,6 +161,7 @@ class AttendanceSheet(models.Model):
name = fields.Char(
string="Name", compute="_compute_name", store=True, readonly=True
)
active = fields.Boolean(string="Active", default=1)
state = fields.Selection(
[
("not_validated", "Not Validated"),
@ -82,6 +82,13 @@
string="Mark as read"
groups="beesdoo_shift.group_cooperative_admin"
/>
<button name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-archive">
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
</button>
</div>
<div class="oe_title">
<h1><field name="name" /></h1>