diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-13 09:30:04 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-13 09:30:04 +0700 |
| commit | 3085bfa4333cbc99ed4a0e432c8313cf7009cd2a (patch) | |
| tree | e06283d977b90b2f0fbedf3b2fe3740a1c6b18d9 /indoteknik_api/controllers/api_v1 | |
| parent | 11ec586c67da3a290fd699d8f752f871be97f651 (diff) | |
refactor url api sla
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
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) |
