summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-12-19 17:01:53 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-12-19 17:01:53 +0700
commit80afbdeecd286c990ddc80c277287df6c95f5ee8 (patch)
treef0a5eeb01ec7a9963105be92b1a11b4e728b77c2
parenta09aa1f1c42f568cd6cbf08e2244a00097b8bb69 (diff)
fix compute onhand bandengan
-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):