Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
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
0
Merge Requests
0
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
odoo
Commits
c7f95f50
Commit
c7f95f50
authored
Nov 27, 2024
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reprise en compte de la fonction_alter_point_event_depending_on_makeups_total_count
parent
1b055b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
shift_counter_event.py
...addons/lacagette_membership/models/shift_counter_event.py
+2
-3
No files found.
lacagette_addons/lacagette_membership/models/shift_counter_event.py
View file @
c7f95f50
...
@@ -157,9 +157,8 @@ class ShiftCounterEvent(models.Model):
...
@@ -157,9 +157,8 @@ class ShiftCounterEvent(models.Model):
unsubscribe_limit
=
int
(
conf
.
get_param
(
"lacagette_membership.points_limit_to_get_unsubscribed"
))
unsubscribe_limit
=
int
(
conf
.
get_param
(
"lacagette_membership.points_limit_to_get_unsubscribed"
))
if
'point_qty'
in
vals
and
vals
[
'point_qty'
]
!=
0
:
if
'point_qty'
in
vals
and
vals
[
'point_qty'
]
!=
0
:
res_partner
=
self
.
env
[
'res.partner'
]
.
search
([(
'id'
,
'='
,
vals
[
'partner_id'
])])
res_partner
=
self
.
env
[
'res.partner'
]
.
search
([(
'id'
,
'='
,
vals
[
'partner_id'
])])
# to_consider_vals = self._alter_point_event_depending_on_makeups_total_count(res_partner, vals, suspension_limit)
to_consider_vals
=
self
.
_alter_point_event_depending_on_makeups_total_count
(
res_partner
,
vals
,
suspension_limit
)
# _logger.info("to_consider_vals : %s", str(to_consider_vals))
_logger
.
debug
(
"to_consider_vals :
%
s"
,
str
(
to_consider_vals
))
to_consider_vals
=
vals
# TODO : Reimplement this adjustments
if
res_partner
:
if
res_partner
:
partner
=
res_partner
[
0
]
partner
=
res_partner
[
0
]
_logger
.
debug
(
"partner = :
%
s, makeups_to_do :
%
s"
,
str
(
partner
),
str
(
partner
.
makeups_to_do
))
_logger
.
debug
(
"partner = :
%
s, makeups_to_do :
%
s"
,
str
(
partner
),
str
(
partner
.
makeups_to_do
))
...
...
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