diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-07 16:43:33 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-07 16:43:33 +0700 |
| commit | f6afdd8f02676e9f0f16e2363f0065982e1e0c54 (patch) | |
| tree | cf6e009f320ca2454aa83d3ba25fcadd1dbce798 /indoteknik_api/models | |
| parent | 779002da16637df255b7f8ead65ccb49078d6190 (diff) | |
<iman> update code quotation status
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/sale_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py index 725dbb4b..3f9606a5 100644 --- a/indoteknik_api/models/sale_order.py +++ b/indoteknik_api/models/sale_order.py @@ -39,6 +39,8 @@ class SaleOrder(models.Model): data['status'] = 'cancel' if sale_order.state in ['draft', 'sent']: data['status'] = 'draft' + if sale_order.is_continue_transaction: + data['status'] = 'waiting' if sale_order.approval_status in ['pengajuan1', 'pengajuan2']: data['status'] = 'waiting' if sale_order.state == 'sale': |
