summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/stock_picking.py2
-rw-r--r--indoteknik_custom/views/stock_picking.xml12
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 @@
<field name="real_shipping_id"/>
</field>
<field name="origin" position="after">
- <field name="purchase_representative_id"/>
<field name="status_printed"/>
<field name="purchase_id"/>
<field name="date_doc_kirim"/>
@@ -116,5 +115,16 @@
</field>
</record>
+
+ <record id="view_picking_internal_search_inherit" model="ir.ui.view">
+ <field name="name">stock.picking.internal.search.inherit</field>
+ <field name="model">stock.picking</field>
+ <field name="inherit_id" ref="stock.view_picking_internal_search"/>
+ <field name="arch" type="xml">
+ <field name="product_id" position="after">
+ <field name="purchase_representative_id"/>
+ </field>
+ </field>
+ </record>
</data>
</odoo> \ No newline at end of file