This commit is contained in:
oscar alvarez 2022-06-28 10:37:09 -05:00
parent 62650981e9
commit d6d6f019b5
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ class ShiftKind(ModelSQL, ModelView):
def default_legal_work_time():
return 8
@staticmethod
def default_mode():
return 'work'
def get_total_time(self, name):
if self.start and self.end:
t1 = timedelta(hours=self.start.hour, minutes=self.start.minute)