Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
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
2
Merge Requests
2
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
third-party
Commits
ddcbb3a0
Commit
ddcbb3a0
authored
Jul 26, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
possible error cases
parent
c72ad4c0
Pipeline
#2320
passed with stage
in 1 minute 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
admin.py
members/admin.py
+4
-2
manage_attached.js
members/static/js/admin/manage_attached.js
+9
-8
No files found.
members/admin.py
View file @
ddcbb3a0
...
...
@@ -751,8 +751,10 @@ def create_pair(request):
"partner_id"
:
parent_id
,
"point_qty"
:
-
1
})
api
.
execute
(
'res.partner'
,
'run_process_target_status'
,
[])
try
:
api
.
execute
(
'res.partner'
,
'run_process_target_status'
,
[])
except
:
pass
m
=
CagetteMember
(
child_id
)
.
unsubscribe_member
()
# update child base account state
...
...
members/static/js/admin/manage_attached.js
View file @
ddcbb3a0
...
...
@@ -277,19 +277,20 @@ function create_pair(payload) {
},
error
:
function
(
data
)
{
err
=
{
msg
:
"erreur serveur"
,
ctx
:
'create pair'
};
var
message
=
'Erreur lors de création du binôme.'
;
if
(
typeof
data
.
responseJSON
!=
'undefined'
&&
typeof
data
.
responseJSON
.
errors
!=
'undefined'
)
{
err
.
msg
+=
' : '
+
data
.
responseJSON
.
errors
;
data
.
responseJSON
.
errors
.
map
(
function
(
error
)
{
message
+=
(
'
\
n'
+
error
);
return
null
;
});
}
report_JS_error
(
err
,
'members.admin'
);
report_JS_error
(
err
,
'members.admin'
);
closeModal
();
var
message
=
'Erreur lors de création du binôme.'
;
data
.
responseJSON
.
errors
.
map
(
function
(
error
)
{
message
+=
(
'
\
n'
+
error
);
return
null
;
});
alert
(
message
);
}
});
...
...
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