diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-04-26 04:13:49 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-04-26 04:13:49 +0000 |
| commit | 09c3b3a6a706d176f61bf89fc7acb690650b528c (patch) | |
| tree | f629b737d6541c06f4026731ca1db069291b0689 /indoteknik_api | |
| parent | 0fe833914b02e27d1ea7f6ac0cc05e9e4b1961ae (diff) | |
| parent | d026ce987698790c8424a1b88d7bfacf1508dad6 (diff) | |
Merged in feature/request-by-abl (pull request #139)
Update approval by procurement
Diffstat (limited to 'indoteknik_api')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/sale_order.py | 2 | ||||
| -rw-r--r-- | indoteknik_api/models/sale_order.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/sale_order.py b/indoteknik_api/controllers/api_v1/sale_order.py index 40936a82..3f31011c 100644 --- a/indoteknik_api/controllers/api_v1/sale_order.py +++ b/indoteknik_api/controllers/api_v1/sale_order.py @@ -160,7 +160,7 @@ class SaleOrder(controller.Controller): if partner.web_role: sale_order.web_approval = 'cust_%s' % partner.web_role - if sale_order.web_approval == 'cust_procurement': + if sale_order.web_approval in ['cust_procurement', 'cust_director']: sale_order.approval_status = 'pengajuan1' return self.response('success') diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py index 1c0180ec..969fd79f 100644 --- a/indoteknik_api/models/sale_order.py +++ b/indoteknik_api/models/sale_order.py @@ -8,7 +8,8 @@ class SaleOrder(models.Model): APPROVAL_STEP = { 'company': 1, 'cust_manager': 2, - 'cust_director': 3, + 'cust_procurement': 3, + 'cust_director': 3 } data = { |
