Commit 9cde319b by Félicie

shift print

parent e0e9dc85
Pipeline #2009 passed with stage
in 1 minute 29 seconds
......@@ -56,6 +56,9 @@ class CagetteShift(models.Model):
if partnerData['shift_type'] == 'standard':
partnerData['in_ftop_team'] = False
# Because 'in_ftop_team' doesn't seem to be reset to False in Odoo
if partnerData['is_associated_people']:
cond = [['partner_id.id', '=', partnerData['parent_id'][0]]]
else:
cond = [['partner_id.id', '=', id]]
fields = ['shift_template_id', 'is_current']
shiftTemplate = self.o_api.search_read('shift.template.registration', cond, fields)
......@@ -88,7 +91,6 @@ class CagetteShift(models.Model):
partnerData['is_leave'] = True
partnerData["leave_start_date"] = res_leaves[0]["start_date"]
partnerData["leave_stop_date"] = res_leaves[0]["stop_date"]
return partnerData
def get_shift_partner(self, id):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment