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
1c7836cc
Commit
1c7836cc
authored
Jun 24, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout champ 'meal_voucher_ok' dans les informations produits pour impression étiquettes (#3347)
parent
f962b763
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
models.py
products/models.py
+1
-1
No files found.
products/models.py
View file @
1c7836cc
...
@@ -56,7 +56,7 @@ class CagetteProduct(models.Model):
...
@@ -56,7 +56,7 @@ class CagetteProduct(models.Model):
cond
=
[[
'product_tmpl_id.id'
,
'='
,
template_id
]]
cond
=
[[
'product_tmpl_id.id'
,
'='
,
template_id
]]
fields
=
[
'barcode'
,
'product_tmpl_id'
,
'pricetag_rackinfos'
,
fields
=
[
'barcode'
,
'product_tmpl_id'
,
'pricetag_rackinfos'
,
'price_weight_net'
,
'price_volume'
,
'list_price'
,
'price_weight_net'
,
'price_volume'
,
'list_price'
,
'weight_net'
,
'volume'
,
'to_weight'
]
'weight_net'
,
'volume'
,
'to_weight'
,
'meal_voucher_ok'
]
additionnal_fields
=
getattr
(
settings
,
'SHELF_LABELS_ADD_FIELDS'
,
[])
additionnal_fields
=
getattr
(
settings
,
'SHELF_LABELS_ADD_FIELDS'
,
[])
fields
+=
additionnal_fields
fields
+=
additionnal_fields
product_data
=
api
.
search_read
(
'product.product'
,
cond
,
fields
)
product_data
=
api
.
search_read
(
'product.product'
,
cond
,
fields
)
...
...
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