From d1bc570eae2818bc4b535840f2eb3061b99ca98b Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Tue, 27 Sep 2022 15:00:39 +0700 Subject: Fix product image not found rest api --- indoteknik_custom/controllers/api/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom/controllers/api') diff --git a/indoteknik_custom/controllers/api/product.py b/indoteknik_custom/controllers/api/product.py index 0cd02e90..3b1c4ce8 100644 --- a/indoteknik_custom/controllers/api/product.py +++ b/indoteknik_custom/controllers/api/product.py @@ -82,7 +82,7 @@ class ProductApi(api_controller.ApiController): data['products'].append({ 'id': product_template.id, - 'image': base_url + 'api/image/product.template/image_128/' + str(product_template.id), + 'image': base_url + 'api/image/product.template/image_128/' + str(product_template.id) if product_template.image_128 else '', 'name': product_template.name, 'price': price, 'discount_price': discount_price, -- cgit v1.2.3