fix(api): Add default consume location for products
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d4c58bf9f0
commit
0615bb96ea
1
app.py
1
app.py
@ -76,6 +76,7 @@ def add_product(dict_good, location):
|
|||||||
data_grocy["default_best_before_days"] = best_before_days
|
data_grocy["default_best_before_days"] = best_before_days
|
||||||
if location_:
|
if location_:
|
||||||
data_grocy["location_id"] = location_
|
data_grocy["location_id"] = location_
|
||||||
|
data_grocy["default_consume_location_id"] = location_
|
||||||
|
|
||||||
# add product
|
# add product
|
||||||
response_grocy = grocy.add_generic(EntityType.PRODUCTS, data_grocy)
|
response_grocy = grocy.add_generic(EntityType.PRODUCTS, data_grocy)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user