summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-09-18 14:49:06 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-09-18 14:49:06 +0700
commit675499a48ae64183ed494bb907047151d934e6b2 (patch)
tree497cdb705b1ae261afd27d387b614ad934bb536b /indoteknik_custom/models
parent6c7617432a986e43e94c8f72c1a9505042dc0b01 (diff)
push
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 94c5f041..2d8567b0 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -1877,6 +1877,8 @@ class SaleOrder(models.Model):
})
def open_form_multi_update_status(self):
+ if self.env.user.id != 688 or self.env.user.has_group('indoteknik_custom.group_role_it'):
+ raise UserError("Hanya Finance nya yang bisa approve.")
action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_sale_orders_multi_update')
action['context'] = {
'sale_ids': [x.id for x in self]