diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 10:48:18 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 10:48:18 +0700 |
| commit | d7a27383cbfe08dd282351b14cbe24361e9c91bf (patch) | |
| tree | c243c82f836cbba7f351793ed8c15288b1eaaa31 | |
| parent | 37b17b0dc10de1511dd478b46b2902dbfe7695c2 (diff) | |
| parent | cc9d0545db5ac51bd00a02680e99465a9bb90269 (diff) | |
Merge branch 'main' of bitbucket.org:altafixco/fixco-addons
pull
| -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 |
