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
1bc14e83
Commit
1bc14e83
authored
Oct 09, 2024
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctif coquille dans _update_partner_makeups_to_do
parent
47c016bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
shift_counter_event.py
...addons/lacagette_membership/models/shift_counter_event.py
+1
-1
No files found.
lacagette_addons/lacagette_membership/models/shift_counter_event.py
View file @
1bc14e83
...
@@ -134,7 +134,7 @@ class ShiftCounterEvent(models.Model):
...
@@ -134,7 +134,7 @@ class ShiftCounterEvent(models.Model):
try
:
try
:
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'
])])
res_partner
[
0
]
.
update
({
makeups_to_do
:
res_partner
[
0
]
.
makeups_to_do
+
1
})
res_partner
[
0
]
.
update
({
'makeups_to_do'
:
res_partner
[
0
]
.
makeups_to_do
+
1
})
return
0
return
0
except
Exception
as
e
:
except
Exception
as
e
:
_logger
.
error
(
"_update_partner_makeups_to_do :
%
s"
,
str
(
e
))
_logger
.
error
(
"_update_partner_makeups_to_do :
%
s"
,
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