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
1964bd13
Commit
1964bd13
authored
Sep 29, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cagette_membership res_partner write & update error
parent
38988e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
res_partner.py
lacagette_addons/lacagette_membership/models/res_partner.py
+3
-4
No files found.
lacagette_addons/lacagette_membership/models/res_partner.py
View file @
1964bd13
...
...
@@ -99,7 +99,6 @@ class ResPartner(models.Model):
@api.model
def
update
(
self
,
vals
):
res
=
super
(
ResPartner
,
self
)
.
write
(
vals
)
#_logger.info("valeurs reçues pour update partner = %s", str(vals))
state_to_record
=
""
if
'cooperative_state'
in
vals
:
...
...
@@ -109,14 +108,13 @@ class ResPartner(models.Model):
state_to_record
=
vals
[
'current_cooperative_state'
]
if
len
(
state_to_record
)
>
0
:
self
.
_write_state_change
(
state_to_record
)
return
res
return
super
(
ResPartner
,
self
)
.
update
(
vals
)
@api.model
def
write
(
self
,
vals
):
res
=
super
(
ResPartner
,
self
)
.
write
(
vals
)
# _logger.info("valeurs reçues pour write partner = %s", str(vals))
if
'cooperative_state'
in
vals
:
self
.
_write_state_change
(
vals
[
'cooperative_state'
])
return
res
return
super
(
ResPartner
,
self
)
.
write
(
vals
)
\ No newline at end of file
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