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
a94dfe0c
Commit
a94dfe0c
authored
Mar 10, 2022
by
Etienne Freiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change name reopen_registration
parent
b5ae60ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
models.py
members/models.py
+1
-1
views.py
members/views.py
+1
-1
No files found.
members/models.py
View file @
a94dfe0c
...
...
@@ -1303,7 +1303,7 @@ class CagetteServices(models.Model):
return
api
.
update
(
'shift.registration'
,
[
int
(
registration_id
)],
f
)
@staticmethod
def
re
gistration_cancel
(
registration_id
,
overrided_date
=
""
):
def
re
open_registration
(
registration_id
,
overrided_date
=
""
):
api
=
OdooAPI
()
f
=
{
'state'
:
'open'
}
...
...
members/views.py
View file @
a94dfe0c
...
...
@@ -318,7 +318,7 @@ def record_service_presence(request):
del
m
[
'shifts'
]
m
[
'next_shift'
]
=
next_shift
res
[
'member'
]
=
m
else
:
CagetteServices
.
re
gistration_cancel
(
rid
,
overrided_date
)
else
:
CagetteServices
.
re
open_registration
(
rid
,
overrided_date
)
except
Exception
as
e
:
res
[
'error'
]
=
str
(
e
)
...
...
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