From 3f057d524b1cc59017fc788990bd0ce41d2790d9 Mon Sep 17 00:00:00 2001 From: Maxime Grosmaire <64633980+MaximeGrosmaire@users.noreply.github.com> Date: Mon, 23 Sep 2024 18:04:32 +1000 Subject: [PATCH] Add setting to use hours instead of days for durations and estimations --- zou/app/models/organisation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zou/app/models/organisation.py b/zou/app/models/organisation.py index 54da5727b8..f282a9408e 100644 --- a/zou/app/models/organisation.py +++ b/zou/app/models/organisation.py @@ -14,6 +14,7 @@ class Organisation(db.Model, BaseMixin, SerializerMixin): has_avatar = db.Column(db.Boolean(), default=False) use_original_file_name = db.Column(db.Boolean(), default=False) timesheets_locked = db.Column(db.Boolean(), default=False) + format_duration_in_hours = db.Column(db.Boolean(), default=False) hd_by_default = db.Column(db.Boolean(), default=False) chat_token_slack = db.Column(db.String(80), default="") chat_webhook_mattermost = db.Column(db.String(80), default="") @@ -32,6 +33,7 @@ def present(self): "hd_by_default": self.hd_by_default, "use_original_file_name": self.use_original_file_name, "timesheets_locked": self.timesheets_locked, + "format_duration_in_hours": self.format_duration_in_hours, "updated_at": self.updated_at, "created_at": self.created_at, }