Commit caebaffb by Yvon

lower makeups to zero only if new shift type is ftop

parent 9446558f
Pipeline #2911 failed with stage
in 1 minute 5 seconds
......@@ -650,7 +650,7 @@ def shift_subscription(request):
def lower_makeup_count_to_zero_if_moving_from_std_to_non_std(api, partner_id, shift_type, res):
if shift_type != 1:
if shift_type == 2:
c = [['id', '=', partner_id]]
f = ['shift_type']
old_shift_type = api.search_read('res.partner', c, f)[0]['shift_type']
......
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