From a8b61df3350a92843240021801d37a39e37893ea Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Fri, 15 Nov 2019 18:06:15 +0100 Subject: [PATCH] [ADD] b_shift : attendance sheet archived attribute --- beesdoo_shift/models/attendance_sheet.py | 1 + beesdoo_shift/views/attendance_sheet.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index c10e597..fcf4dd5 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/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"), diff --git a/beesdoo_shift/views/attendance_sheet.xml b/beesdoo_shift/views/attendance_sheet.xml index b23aa04..607342e 100644 --- a/beesdoo_shift/views/attendance_sheet.xml +++ b/beesdoo_shift/views/attendance_sheet.xml @@ -82,6 +82,13 @@ string="Mark as read" groups="beesdoo_shift.group_cooperative_admin" /> +