summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-11-12 08:44:27 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-11-12 08:44:27 +0700
commit583a8e3064790a06063d5dc1b06ed8122bb22e4e (patch)
treee1d92d3b6fe50a3d15b5803aa1bcc461e94dbe38
parent1086aadae846f8334cdb0292c606fb5a4d186f89 (diff)
(andri) fix
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 2de4109d..8e731307 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -2383,12 +2383,14 @@ class SaleOrder(models.Model):
if order._requires_approval_margin_leader():
order.approval_status = 'pengajuan2'
+ order.message_post(body="Mengajukan approval ke Pimpinan")
return self._create_approval_notification('Pimpinan')
elif order._requires_approval_margin_manager():
self.check_product_bom()
self.check_credit_limit()
self.check_limit_so_to_invoice()
order.approval_status = 'pengajuan1'
+ order.message_post(body="Mengajukan approval ke Sales Manager")
return self._create_approval_notification('Sales Manager')
elif order._requires_approval_team_sales():
self.check_product_bom()