summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-03-17 09:01:52 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-03-17 09:01:52 +0700
commitcba69ee6c06c3386bed68b537c56393ae2cba11f (patch)
treeb63f3c854ee9d2e5301136d456eb7ce591529578
parent72bf5f78f3503f2a14c3a329653d0726a14d93c8 (diff)
<iman> fix code bom
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index aed0c1df..adc9bb98 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -991,7 +991,7 @@ class SaleOrder(models.Model):
if not confirmed_bom:
raise UserError("Product BOM belum dikonfirmasi di Manufacturing Orders. Silakan hubungi MD.")
else:
- raise UserError("Product BOM belum di confirm di manufacturing orders, silahkan hubungi MD")
+ raise UserError("Product BOM tidak di temukan di manufacturing orders, silahkan hubungi MD")
def sale_order_approve(self):
self.check_product_bom()
self.check_credit_limit()
@@ -1053,6 +1053,7 @@ class SaleOrder(models.Model):
order.approval_status = 'pengajuan2'
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'
@@ -1232,6 +1233,7 @@ class SaleOrder(models.Model):
def action_confirm(self):
for order in self:
+ order.check_product_bom()
order.check_credit_limit()
order.check_limit_so_to_invoice()
if self.validate_different_vendor() and not self.vendor_approval: