summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-20 17:57:28 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-20 17:57:28 +0700
commit22298c2cfdb7d3de1c7a2e85e21444847b65d4ff (patch)
treeb29e739d1a11cdfe4f2a3d05ae14a7670f2656f9 /indoteknik_api/controllers/api_v1
parent145b370e5b57206edd1b44400c9ed8a7a3d26c36 (diff)
add must_authorized in api product sla
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 96b0742a..4795f1fb 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -13,7 +13,7 @@ class Product(controller.Controller):
prefix = '/api/v1/'
@http.route(prefix + 'product_variant/<id>/stock', auth='public', methods=['GET', 'OPTIONS'])
- # @controller.Controller.must_authorized()
+ @controller.Controller.must_authorized()
def get_product_template_stock_by_id(self, **kw):
id = int(kw.get('id'))
product = request.env['product.product'].search([('id', '=', id)], limit=1)