summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-13 09:30:04 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-13 09:30:04 +0700
commit3085bfa4333cbc99ed4a0e432c8313cf7009cd2a (patch)
treee06283d977b90b2f0fbedf3b2fe3740a1c6b18d9
parent11ec586c67da3a290fd699d8f752f871be97f651 (diff)
refactor url api sla
-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 9b7b5a9d..3908ecc2 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__)
class Product(controller.Controller):
prefix = '/api/v1/'
- @http.route(prefix + 'product/template/stock/<id>', auth='public', methods=['GET', 'OPTIONS'])
+ @http.route(prefix + '/api/v1/product_variant/<id>/stock', auth='public', methods=['GET', 'OPTIONS'])
def get_product_template_stock_by_id(self, **kw):
id = kw.get('id')
product = request.env['product.product'].search([('id', '=', id)], limit=1)