Browse Source

[ADD] b_shift : attendance sheet archived attribute

pull/143/head
Elouan Le Bars 5 years ago
parent
commit
a45683d9ec
  1. 1
      beesdoo_shift/models/attendance_sheet.py
  2. 7
      beesdoo_shift/views/attendance_sheet.xml

1
beesdoo_shift/models/attendance_sheet.py

@ -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"),

7
beesdoo_shift/views/attendance_sheet.xml

@ -82,6 +82,13 @@
string="Mark as read"
groups="beesdoo_shift.group_cooperative_admin"
/>
<button name="toggle_active"
type="object"
groups="beesdoo_shift.group_cooperative_admin"
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>

Loading…
Cancel
Save