summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-28 14:49:18 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-28 14:49:18 +0700
commit6ba78f5aa9ca77092ca0195e4868857998fcdda7 (patch)
treef8d660853149f76d4e117d873c67cc1996775102 /indoteknik_custom/models/purchase_order.py
parent9b1ff130cfcec243c698ff4a8b2a5412d3e79011 (diff)
parent104046bcaedf97dd97e604c24ceacf3797974713 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index 53037703..21ca55eb 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -841,16 +841,16 @@ class PurchaseOrder(models.Model):
sticky=True
)
- if len(self.order_sales_match_line) == 0 and not self.env.user.has_group('indoteknik_custom.group_role_merchandiser') and not self.env.user.is_leader:
- self.env.user.notify_danger(
- title='WARNING!!!',
- message='Tidak ada matches SO',
- sticky=True
- )
+ # if len(self.order_sales_match_line) == 0 and not self.env.user.has_group('indoteknik_custom.group_role_merchandiser') and not self.env.user.is_leader:
+ # self.env.user.notify_danger(
+ # title='WARNING!!!',
+ # message='Tidak ada matches SO',
+ # sticky=True
+ # )
if not self.from_apo:
- if not self.matches_so and not self.env.user.id == 21:
- raise UserError("Tidak ada link dengan SO, harus approval Rafly")
+ if not self.matches_so and not self.env.user.is_purchasing_manager and not self.env.user.is_leader:
+ raise UserError("Tidak ada link dengan SO, harus di confirm oleh Purchasing Manager")
send_email = False
if not self.not_update_purchasepricelist: