summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-20 10:49:20 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-20 10:49:20 +0700
commitc19bfe2d5c4a40c14e6da71a0745c4ab23a49716 (patch)
tree217527532534af86883d755a82bf84cbd3545eaf /indoteknik_api/controllers/api_v1
parent0b18f8b67d8c4d4642d85f372555e638b3afa253 (diff)
<iman> ubah source data dari free qty ke qty free bandengan
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 b68eb0f9..32362582 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -103,7 +103,7 @@ class Product(controller.Controller):
product = request.env['product.product'].search(
[('id', '=', id)], limit=1)
- qty_available = product.free_qty
+ qty_available = product.qty_free_bandengan
data = {
'qty': qty_available,