From 675499a48ae64183ed494bb907047151d934e6b2 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 18 Sep 2025 14:49:06 +0700 Subject: push --- indoteknik_custom/models/sale_order.py | 2 ++ indoteknik_custom/report/purchase_report.xml | 2 +- indoteknik_custom/views/stock_picking.xml | 2 +- 3 files changed, 4 insertions(+), 2 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] diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml index dd19340d..9ff7e718 100644 --- a/indoteknik_custom/report/purchase_report.xml +++ b/indoteknik_custom/report/purchase_report.xml @@ -9,7 +9,7 @@ indoteknik_custom.report_purchaseorder_website indoteknik_custom.report_purchaseorder_website - ('PO - %s - %s' % (object.partner_id.name, object.name)) + ('%s - %s' % (object.name, object.partner_id.name)) report diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index abaf347d..0e2eb9e4 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -35,7 +35,7 @@ - + -- cgit v1.2.3