summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index d34702fd..34aff4fa 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -427,7 +427,7 @@ class ProductProduct(models.Model):
('product_id', '=', product.id),
('location_id', '=', 57)
])
- qty = sum(qty_onhand.mapped('inventory_quantity'))
+ qty = sum(qty_onhand.mapped('quantity'))
product.qty_onhand_bandengan = qty
def _get_qty_available_bandengan(self):