|
@@ -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
|