summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-24 11:45:36 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-24 11:45:36 +0700
commite0d9fdcfd618332d6324c244859e9cbbf3a6a225 (patch)
tree2b5a3a44cbe6796dd2d20eec00810eef04ba1f02 /indoteknik_api/controllers/api_v1
parentb8bb3887d9ddb201b993ba187592bbb1f0b449c4 (diff)
Product similar result without its id
Product result discount percentage limit float length
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index bd67e380..0d5d89b6 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -87,7 +87,7 @@ class Product(controller.Controller):
if not product_template: return self.response([])
- query = []
+ query = [('id', '!=', id)]
if product_template.x_manufacture:
query.append(('x_manufacture', '=', product_template.x_manufacture.id))
if product_template.public_categ_ids: