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
64580c4f
Commit
64580c4f
authored
Sep 08, 2021
by
François
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctif is_late (à 1 tout le temps)
parent
041fb5f7
Pipeline
#1286
passed with stage
in 1 minute 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
models.py
members/models.py
+3
-2
No files found.
members/models.py
View file @
64580c4f
...
...
@@ -1092,10 +1092,11 @@ class CagetteServices(models.Model):
if
late_mode
is
True
:
services
=
CagetteServices
.
get_services_at_time
(
'14:28'
,
0
,
with_members
=
False
)
if
len
(
services
)
>
0
:
# Notice : Despite is_late is defined as boolean in Odoo, 0 or 1 is needed for api call
is_late
=
0
if
services
[
0
][
'late'
]
is
True
:
is_late
=
1
f
[
'is_late'
]
=
1
is_late
=
1
f
[
'is_late'
]
=
is_late
else
:
return
False
return
api
.
update
(
'shift.registration'
,
[
int
(
registration_id
)],
f
)
...
...
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