From 80afbdeecd286c990ddc80c277287df6c95f5ee8 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 19 Dec 2023 17:01:53 +0700 Subject: fix compute onhand bandengan --- indoteknik_custom/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3