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
535002df
Commit
535002df
authored
Sep 06, 2023
by
François C.
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hot fix : start shelf labels auto print only is RECEPTION_SHELF_LABEL_PRINT set to TRUE
parent
9052bdcd
Pipeline
#2946
failed with stage
in 1 minute 7 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
models.py
reception/models.py
+2
-1
No files found.
reception/models.py
View file @
535002df
...
@@ -261,7 +261,8 @@ class CagetteReception(models.Model):
...
@@ -261,7 +261,8 @@ class CagetteReception(models.Model):
new_x_reception_status
+=
'/error_uprice'
new_x_reception_status
+=
'/error_uprice'
if
new_x_reception_status
==
''
:
if
new_x_reception_status
==
''
:
new_x_reception_status
=
'done'
new_x_reception_status
=
'done'
self
.
print_shelf_labels_for_updated_prices
(
price_update
[
'lines'
])
if
getattr
(
settings
,
'RECEPTION_SHELF_LABEL_PRINT'
,
False
)
is
True
:
self
.
print_shelf_labels_for_updated_prices
(
price_update
[
'lines'
])
if
result
!=
'already done'
:
if
result
!=
'already done'
:
self
.
o_api
.
update
(
'purchase.order'
,
[
self
.
id
],
{
'x_reception_status'
:
new_x_reception_status
})
self
.
o_api
.
update
(
'purchase.order'
,
[
self
.
id
],
{
'x_reception_status'
:
new_x_reception_status
})
...
...
François C.
@fracolo
mentioned in commit
7556d561
Sep 11, 2023
mentioned in commit
7556d561
mentioned in commit 7556d5619ab68add8de6dc135042f7fbd4144654
Toggle commit list
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