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
ca04e2c6
Commit
ca04e2c6
authored
Nov 17, 2021
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add return to run_process_target_status (lacagette_membership)
parent
b56f67f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
res_partner.py
lacagette_addons/lacagette_membership/models/res_partner.py
+3
-1
No files found.
lacagette_addons/lacagette_membership/models/res_partner.py
View file @
ca04e2c6
...
@@ -28,7 +28,7 @@ class ResPartner(models.Model):
...
@@ -28,7 +28,7 @@ class ResPartner(models.Model):
# final_ftop_point, target_status
# final_ftop_point, target_status
conf
=
self
.
env
[
'ir.config_parameter'
]
conf
=
self
.
env
[
'ir.config_parameter'
]
absence_status
=
conf
.
get_param
(
"lacagette_membership.absence_status"
)
absence_status
=
conf
.
get_param
(
"lacagette_membership.absence_status"
)
result
=
'done'
for
p
in
self
.
env
[
'res.partner'
]
\
for
p
in
self
.
env
[
'res.partner'
]
\
.
search
([(
'target_status'
,
'!='
,
""
)]):
.
search
([(
'target_status'
,
'!='
,
""
)]):
try
:
try
:
...
@@ -57,6 +57,8 @@ class ResPartner(models.Model):
...
@@ -57,6 +57,8 @@ class ResPartner(models.Model):
p
.
update
(
new_values
)
p
.
update
(
new_values
)
except
Exception
as
e
:
except
Exception
as
e
:
_logger
.
error
(
"run_process_target_status :
%
s"
,
str
(
e
))
_logger
.
error
(
"run_process_target_status :
%
s"
,
str
(
e
))
result
=
'error'
return
result
#@api.onchange('cooperativestate') : could be used only if it is called from client
#@api.onchange('cooperativestate') : could be used only if it is called from client
@api.model
@api.model
...
...
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