summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-24 16:06:32 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-24 16:06:32 +0700
commit90a388356693f34d259ba95c32d3a6ce11a95d77 (patch)
treea7edd1811734a9d0b0fe00aaae469136abe3c500 /indoteknik_custom/models/purchase_order.py
parentac4337e441fbd575ac8c0a5f43ae77b7e8fbc328 (diff)
add new field to account move
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index 984c8a23..ebadff06 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -302,9 +302,9 @@ class PurchaseOrder(models.Model):
res = super(PurchaseOrder, self).button_confirm()
current_time = datetime.now()
- if self.total_percent_margin < self.total_so_percent_margin and not self.env.user.is_purchasing_manager or not self.env.user.is_leader:
+ if self.total_percent_margin < self.total_so_percent_margin and not self.env.user.is_purchasing_manager and not self.env.user.is_leader:
raise UserError("Beda Margin dengan Sales, harus approval Manager")
- if not self.sale_order_id and not self.env.user.is_purchasing_manager or not self.env.user.is_leader:
+ if not self.sale_order_id and not self.env.user.is_purchasing_manager and not self.env.user.is_leader:
raise UserError("Tidak ada link dengan SO, harus approval Manager")
send_email = False
self.add_product_to_pricelist()