diff options
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 12 |
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 |
