summaryrefslogtreecommitdiff
path: root/indoteknik_api/models/sale_order.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-23 10:45:13 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-23 10:45:13 +0700
commiteb805076e595f1c757c29357c3e581c89d492138 (patch)
tree10ba613372eb7469342e1d8d34561ca6dd885b8c /indoteknik_api/models/sale_order.py
parentb94e4ff577c023d0ce1717c01c6080efc988acb7 (diff)
parent5c9214c1c846e61c5356e1b19341b070c2303198 (diff)
Merge branch 'staging' of bitbucket.org:altafixco/indoteknik-addons into staging
Diffstat (limited to 'indoteknik_api/models/sale_order.py')
-rw-r--r--indoteknik_api/models/sale_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py
index 66ef27fa..ca6baff0 100644
--- a/indoteknik_api/models/sale_order.py
+++ b/indoteknik_api/models/sale_order.py
@@ -33,9 +33,9 @@ class SaleOrder(models.Model):
picking_count['assigned'] += 1
if picking.state == 'done':
picking_count['done'] += 1
- if picking_count['assigned'] > 0:
+ if picking_count['done'] > 0:
data['status'] = 'shipping'
- if picking_count['done'] > 0:
+ if picking_count['assigned'] > 0:
data['status'] = 'partial_shipping'
if sale_order.state == 'done':
data['status'] = 'done'