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
a6f73d2a
Commit
a6f73d2a
authored
Jun 21, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alert changed
parent
edd0e0df
Pipeline
#2255
passed with stage
in 1 minute 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
shelfs_admin.js
shelfs/static/js/shelfs_admin.js
+3
-5
No files found.
shelfs/static/js/shelfs_admin.js
View file @
a6f73d2a
...
...
@@ -396,14 +396,13 @@ var addProductToList = async function(barcode) {
//It could also be a wrong reading one
odoo_product
=
barcodes
.
get_corresponding_odoo_product
(
barcode
);
if
(
odoo_product
)
{
if
(
odoo_product
===
null
)
{
alert
(
barcode
+
" : ce code-barre est inconnu, merci d'apporter le produit à un salarié."
);
}
else
{
if
(
is_product_in_shelf_adding_queue_list
(
odoo_product
.
data
[
barcodes
.
keys
.
id
]))
{
alert
(
"Produit déjà présent dans la liste."
);
}
else
{
add_to_shelf_product_ids
.
push
(
odoo_product
.
data
[
4
]);
if
(
odoo_product
===
null
)
{
alert
(
barcode
+
' : Code-barre inconnu'
);
}
else
{
var
pdt_line
=
$
(
'<tr>'
).
attr
(
'data-id'
,
odoo_product
.
data
[
barcodes
.
keys
.
id
])
.
attr
(
'data-bc'
,
odoo_product
.
barcode
)
.
addClass
(
'obc'
);
...
...
@@ -423,7 +422,6 @@ var addProductToList = async function(barcode) {
.
html
(
add_pdts_btn_text
);
}
}
}
};
var
addProducts
=
async
function
()
{
...
...
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