From e220b2dd224b59adbf5dbd1058950072e84ccc70 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Sat, 30 Mar 2024 09:55:27 +0700 Subject: add filter purchase representative on stock picking --- indoteknik_custom/models/stock_picking.py | 2 +- indoteknik_custom/views/stock_picking.xml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 9f672da2..c2508660 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -74,7 +74,7 @@ class StockPicking(models.Model): ('indent', 'Indent') ], string='Note Logistic', help='jika field ini diisi maka tidak akan dihitung ke lead time') waybill_id = fields.One2many(comodel_name='airway.bill', inverse_name='do_id', string='Airway Bill') - purchase_representative_id = fields.Many2one('res.users', related='move_lines.purchase_line_id.order_id.user_id', string="Purchase Representative", readonly=True) + purchase_representative_id = fields.Many2one('res.users', related='move_lines.purchase_line_id.order_id.user_id', string="Purchase Representative") carrier_id = fields.Many2one('delivery.carrier', string='Shipping Method') shipping_status = fields.Char(string='Shipping Status', compute="_compute_shipping_status") date_reserved = fields.Datetime(string="Date Reserved", help='Tanggal ter-reserved semua barang nya') diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index 979bede3..a8772906 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -59,7 +59,6 @@ - @@ -116,5 +115,16 @@ + + + stock.picking.internal.search.inherit + stock.picking + + + + + + + \ No newline at end of file -- cgit v1.2.3