|
@@ -44,8 +44,6 @@ def get_products(image_type='small', location_ids=None):
|
|
'variantCount': p.product_variant_count,
|
|
'variantCount': p.product_variant_count,
|
|
'quantity': 1,
|
|
'quantity': 1,
|
|
'price': p.list_price,
|
|
'price': p.list_price,
|
|
- 'minimumPrice': p.minimum_price,
|
|
|
|
- 'maximumPrice': p.maximum_price,
|
|
|
|
'discount': 0,
|
|
'discount': 0,
|
|
'categoryId': p.categ_id.id or None,
|
|
'categoryId': p.categ_id.id or None,
|
|
'variants': [{
|
|
'variants': [{
|
|
@@ -55,10 +53,9 @@ def get_products(image_type='small', location_ids=None):
|
|
'defaultCode': p.default_code,
|
|
'defaultCode': p.default_code,
|
|
'image': v.image_small if image_type == 'small' else v.image_medium,
|
|
'image': v.image_small if image_type == 'small' else v.image_medium,
|
|
'listPrice': v.list_price,
|
|
'listPrice': v.list_price,
|
|
|
|
+ 'standardPrice': v.standard_price,
|
|
'quantity': 1,
|
|
'quantity': 1,
|
|
'price': v.list_price,
|
|
'price': v.list_price,
|
|
- 'minimumPrice': p.minimum_price,
|
|
|
|
- 'maximumPrice': p.maximum_price,
|
|
|
|
'discount': 0,
|
|
'discount': 0,
|
|
'pricelistId': v.pricelist_id.id or None,
|
|
'pricelistId': v.pricelist_id.id or None,
|
|
'locations': in_locations.get(v.id, []),
|
|
'locations': in_locations.get(v.id, []),
|