Browse Source

[FIX] b_shift : default_task_type_id computation

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
3ed580f9fd
  1. 5
      beesdoo_shift/models/attendance_sheet.py

5
beesdoo_shift/models/attendance_sheet.py

@ -17,11 +17,10 @@ class AttendanceSheetShift(models.AbstractModel):
def default_task_type_id(self):
parameters = self.env["ir.config_parameter"]
id = int(
parameters.get_param(
"beesdoo_shift.default_task_type_id", default=1
)
parameters.get_param("beesdoo_shift.default_task_type_id", default=False)
)
task_types = self.env["beesdoo.shift.type"]
if id:
return task_types.browse(id)
# Related actual shift

Loading…
Cancel
Save