diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-19 17:01:53 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-19 17:01:53 +0700 |
| commit | 80afbdeecd286c990ddc80c277287df6c95f5ee8 (patch) | |
| tree | f0a5eeb01ec7a9963105be92b1a11b4e728b77c2 | |
| parent | a09aa1f1c42f568cd6cbf08e2244a00097b8bb69 (diff) | |
fix compute onhand bandengan
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 2 |
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): |
