diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-09-18 14:49:06 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-09-18 14:49:06 +0700 |
| commit | 675499a48ae64183ed494bb907047151d934e6b2 (patch) | |
| tree | 497cdb705b1ae261afd27d387b614ad934bb536b | |
| parent | 6c7617432a986e43e94c8f72c1a9505042dc0b01 (diff) | |
push
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/report/purchase_report.xml | 2 | ||||
| -rw-r--r-- | 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 @@ <field name="report_name">indoteknik_custom.report_purchaseorder_website</field> <field name="report_file">indoteknik_custom.report_purchaseorder_website</field> <field name="print_report_name"> - ('PO - %s - %s' % (object.partner_id.name, object.name)) + ('%s - %s' % (object.name, object.partner_id.name)) </field> <field name="binding_model_id" ref="purchase.model_purchase_order"/> <field name="binding_type">report</field> 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 @@ <field name="partner_id" position="after"> <field name="area_name" optional="hide"/> <field name="purchase_representative_id"/> - <field name="status_printed"/> + <field name="status_printed" optional="hide"/> </field> </field> </record> |
