summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-05-10 11:27:07 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-05-10 11:27:07 +0700
commitcb9ae6021dd4858372ed78d16ab491226c95f1d2 (patch)
tree0065f1c38a4cde7e800e57685a3b7d431669cb6b /indoteknik_custom/models/product_template.py
parent71a36d6f5bb8688f0d8907818fb90026c5dac5d3 (diff)
change request qty onhand and fix bug name apo
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
-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 4bab2cad..8494e18a 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -410,7 +410,7 @@ class ProductProduct(models.Model):
for product in self:
qty_onhand = self.env['stock.quant'].search([
('product_id', '=', product.id),
- ('location_id', '=', 57)
+ ('location_id', 'in', [57, 83])
])
qty = sum(qty_onhand.mapped('quantity'))
product.qty_onhand_bandengan = qty