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
080b68ae
Commit
080b68ae
authored
Sep 27, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when configured to do so, print shelf labels
parent
1b5367c3
Pipeline
#3829
failed with stage
in 1 minute 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
models.py
reception/models.py
+4
-1
No files found.
reception/models.py
View file @
080b68ae
...
...
@@ -245,8 +245,11 @@ class CagetteReception(models.Model):
if
done
==
len
(
res
):
result
=
'processed'
price_update
=
self
.
update_products_price_v12
()
if
price_update
and
price_update
[
'success'
]
is
False
:
if
price_update
[
'success'
]
is
False
:
result
=
'error: price update'
else
:
if
getattr
(
settings
,
'RECEPTION_SHELF_LABEL_PRINT'
,
False
)
is
True
:
self
.
print_shelf_labels_for_updated_prices
(
price_update
[
'lines'
])
else
:
result
=
False
...
...
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