Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
caebaffb
Commit
caebaffb
authored
Aug 23, 2023
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lower makeups to zero only if new shift type is ftop
parent
9446558f
Pipeline
#2911
failed with stage
in 1 minute 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
admin.py
members/admin.py
+1
-1
No files found.
members/admin.py
View file @
caebaffb
...
@@ -650,7 +650,7 @@ def shift_subscription(request):
...
@@ -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
):
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
]]
c
=
[[
'id'
,
'='
,
partner_id
]]
f
=
[
'shift_type'
]
f
=
[
'shift_type'
]
old_shift_type
=
api
.
search_read
(
'res.partner'
,
c
,
f
)[
0
][
'shift_type'
]
old_shift_type
=
api
.
search_read
(
'res.partner'
,
c
,
f
)[
0
][
'shift_type'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment