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
4997c84d
Commit
4997c84d
authored
Oct 01, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix res partner error
parent
7e9aa8a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
res_partner.py
lacagette_addons/lacagette_membership/models/res_partner.py
+2
-2
No files found.
lacagette_addons/lacagette_membership/models/res_partner.py
View file @
4997c84d
...
@@ -101,7 +101,7 @@ class ResPartner(models.Model):
...
@@ -101,7 +101,7 @@ class ResPartner(models.Model):
data
=
{
'member_id'
:
self
.
id
,
'state'
:
state
}
data
=
{
'member_id'
:
self
.
id
,
'state'
:
state
}
self
.
env
[
'member.state.change'
]
.
create
(
data
)
self
.
env
[
'member.state.change'
]
.
create
(
data
)
@api.m
odel
@api.m
ulti
def
update
(
self
,
vals
):
def
update
(
self
,
vals
):
#_logger.info("valeurs reçues pour update partner = %s", str(vals))
#_logger.info("valeurs reçues pour update partner = %s", str(vals))
state_to_record
=
""
state_to_record
=
""
...
@@ -116,7 +116,7 @@ class ResPartner(models.Model):
...
@@ -116,7 +116,7 @@ class ResPartner(models.Model):
return
super
(
ResPartner
,
self
)
.
update
(
vals
)
return
super
(
ResPartner
,
self
)
.
update
(
vals
)
@api.m
odel
@api.m
ulti
def
write
(
self
,
vals
):
def
write
(
self
,
vals
):
# _logger.info("valeurs reçues pour write partner = %s", str(vals))
# _logger.info("valeurs reçues pour write partner = %s", str(vals))
if
'cooperative_state'
in
vals
:
if
'cooperative_state'
in
vals
:
...
...
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