summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-16 10:25:40 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-16 10:25:40 +0700
commit0f99be075d857fb6bc7985b0fe8b429f53d3a9a0 (patch)
treeb49fcc0efffa1f02c3a804bde5f0f1c3db1166f7
parente3bac53c36e9b5314553340d4e345e9ed0ab2add (diff)
bug fix so status
-rwxr-xr-xindoteknik_custom/models/sale_order.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 8a4d096a..519e55ce 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -104,10 +104,9 @@ class SaleOrder(models.Model):
def calculate_so_status(self):
so_state = ['sale']
- so_status = ['sebagian', 'menunggu']
sales = self.env['sale.order'].search([
('state', 'in', so_state),
- ('so_status', 'in', so_status),
+ ('so_status', '!=', 'terproses'),
])
for sale in sales:
sum_qty_ship = sum_qty_so = 0