summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-01-01 07:25:57 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-01-01 07:25:57 +0700
commit3fe3e6550d8b8ba8a69849324dbdb80041e91ae3 (patch)
tree2cc700af6f641cc4d21bf553b7c1be23d4613f4b
parent4f29a01888d72ffe07ebffa4e9e0637efb2495d2 (diff)
<Miqdad> rollback PO validation
-rw-r--r--fixco_custom/models/purchase_order.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py
index fdf775a..cf8945e 100644
--- a/fixco_custom/models/purchase_order.py
+++ b/fixco_custom/models/purchase_order.py
@@ -348,13 +348,13 @@ class PurchaseOrder(models.Model):
def button_confirm(self):
- # if self.env.user.id not in [12, 10, 2, 15]:
- # self.check_buffer_stock()
- # if self.source == 'manual' and self.env.user.id not in [12, 10, 2, 15]:
- # raise UserError(_("Anda tidak memiliki akses untuk melakukan konfirmasi PO manual"))
+ if self.env.user.id not in [12, 10, 2, 15]:
+ self.check_buffer_stock()
+ if self.source == 'manual' and self.env.user.id not in [12, 10, 2, 15]:
+ raise UserError(_("Anda tidak memiliki akses untuk melakukan konfirmasi PO manual"))
res = super(PurchaseOrder, self).button_confirm()
- # if self.partner_id.id == 270:
- # self.action_create_order_altama()
+ if self.partner_id.id == 270:
+ self.action_create_order_altama()
return res