diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-05 11:03:10 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-05 11:03:10 +0700 |
| commit | 8d87673201e7339cb946c36e8f91579e135d5c5b (patch) | |
| tree | cf17537384f05b26632b47e217f4c5536f5edc60 /indoteknik_custom/models | |
| parent | 9306992db370c793e8cab494038b0de5b61b600f (diff) | |
api promotion program line get program line by promotion_type
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 6086a2ca..d490eb05 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -403,7 +403,7 @@ class ProductProduct(models.Model): for product in self: qty_incoming = self.env['stock.move'].search([ ('product_id', '=', product.id), - ('location_dest_id', '=', 57), + ('location_dest_id', 'in', [57, 83]), ('state', 'not in', ['done', 'cancel']) ]) qty = sum(qty_incoming.mapped('product_uom_qty')) @@ -414,7 +414,7 @@ class ProductProduct(models.Model): qty_incoming = self.env['stock.move'].search([ ('product_id', '=', product.id), ('location_dest_id', '=', 5), - ('location_id', '=', 57), + ('location_id', 'in', [57, 83]), ('state', 'not in', ['done', 'cancel']) ]) qty = sum(qty_incoming.mapped('product_uom_qty')) |
