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
681b110c
Commit
681b110c
authored
a month ago
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make code robust to presence or absence of terminal slash in odoo server url
parent
58d54d1e
migration-v12
…
6813-marking-parent-gone-when-unpairing-binom-does-not-unsuscribe-parent-from-shift-template
7723-7559-change-purchase-order-workflow-django-side
7731-third-party-side-brinks-pos-export-not-working
7747-inventaire-par-article
7800-make-test-solution-work
7848-cannot-validate-qty-with-decimal-on-kg-product
migration-v12-tag
1 merge request
!277
WIP: get modifications from third-party-v12 repo
Pipeline
#4121
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
orders_helper.js
orders/static/js/orders_helper.js
+1
-0
No files found.
orders/static/js/orders_helper.js
View file @
681b110c
...
...
@@ -1420,6 +1420,7 @@ function get_order_attachments() {
contentType
:
"application/json; charset=utf-8"
,
success
:
function
(
data
)
{
for
(
let
res_po
of
data
.
res
)
{
odoo_server
=
odoo_server
.
replace
(
/
\/
$/
,
''
);
// Supprime le / à la fin de l'URL s'il existe
$
(
`#download_attachment_
${
res_po
.
id_po
}
`
).
attr
(
'href'
,
`
${
odoo_server
}
/web/content/
${
res_po
.
id_attachment
}
?download=true`
);
}
...
...
This diff is collapsed.
Click to expand it.
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