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
97e7bc61
Commit
97e7bc61
authored
Jan 22, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
261f5acd
Pipeline
#4078
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
models.py
members/models.py
+0
-23
No files found.
members/models.py
View file @
97e7bc61
...
...
@@ -1109,29 +1109,6 @@ class CagetteMember(models.Model):
[
self
.
get_shift_template_registration_ids
()]
)
def
unselect_makeup_registrations
(
self
,
ids
):
# Il faut d'abord traiter le shift_registration,
# soit en le supprimant (comme le fait unsubscribe_member)
# soit le marquant cancel (comme le fait delete_shift_registration)
# Attention, en l'état, la première solution ne permet pas d'indiquer
# la raison de l'opération. On opte pourtant pour cette solution ici.
res
=
{}
res
[
"delete_shifts_reg"
]
=
self
.
o_api
.
execute
(
'shift.registration'
,
'unlink'
,
ids
)
# Odoo gère bien l'ajout d'un point consécutif à cette opération quand il s'agit d'un rattrapage.
# Il faut maintenant corriger cette situation en retirant un point,
# (qui va conduire odoo à ajouter un rattrapage)
fields
=
{
'name'
:
"Admin BDM (déchoisissement de rattrapage par une annulation de présence) - "
+
cancellation_description
,
'shift_id'
:
False
,
'type'
:
data
[
"member_shift_type"
],
'partner_id'
:
member_id
,
'point_qty'
:
1
}
res
[
"update_counter"
]
=
m
.
update_counter_event
(
fields
)
return
res
def
set_cooperative_state
(
self
,
state
):
f
=
{
'cooperative_state'
:
state
}
return
self
.
o_api
.
update
(
'res.partner'
,
[
self
.
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