Browse Source

[FIX] minimum and maximun price

robert 5 years ago
parent
commit
67514b7e4f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      controllers/helpers/product_template.py

+ 4 - 4
controllers/helpers/product_template.py

@@ -50,8 +50,8 @@ def get_products(type=None, location_ids=[]):
             'variantCount': p.product_variant_count,
             'variantCount': p.product_variant_count,
             'quantity': 1,
             'quantity': 1,
             'price': p.standard_price,
             'price': p.standard_price,
-            'minimumPrice': p.minimum_price,
-            'maximumPrice': p.maximum_price,
+            'minimumPrice': 0,
+            'maximumPrice': 0,
             'variants': [{
             'variants': [{
                 'id': v.id,
                 'id': v.id,
                 'name': v.name,
                 'name': v.name,
@@ -61,8 +61,8 @@ def get_products(type=None, location_ids=[]):
                 'standardPrice': v.standard_price,
                 'standardPrice': v.standard_price,
                 'quantity': 1,
                 'quantity': 1,
                 'price': v.standard_price,
                 'price': v.standard_price,
-                'minimumPrice': p.minimum_price,
-                'maximumPrice': p.maximum_price,
+                'minimumPrice': 0,
+                'maximumPrice': 0,
                 'locations': in_locations.get(v.id, [])
                 'locations': in_locations.get(v.id, [])
             } for v in p.product_variant_ids if v.active]
             } for v in p.product_variant_ids if v.active]
         } for p in product_obj.search(domain)
         } for p in product_obj.search(domain)