Explorar el Código

[FIX] product with non zero standard price

Gogs hace 7 años
padre
commit
4a77f41580
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/main.py

+ 1 - 1
controllers/main.py

@@ -144,7 +144,7 @@ class Purchases(http.Controller):
                 'imageMedium': variant.image_medium,
                 'standardPrice': variant.standard_price
             } for variant in product.product_variant_ids if variant.active]
-        } for product in request.env['product.template'].search([('purchase_ok', '=', True), ('active', '=', True)])]
+        } for product in request.env['product.template'].search([('purchase_ok', '=', True), ('standard_price', '>', 0), ('active', '=', True)])]
 
     '''
         Get all incoming and active picking types