From c9977d7ced930aed5e0f96c1cde30b5cd7c37c94 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 29 Aug 2023 13:20:52 +0700 Subject: fix stock picking purchase_id --- indoteknik_custom/models/stock_picking.py | 2 -- indoteknik_custom/views/stock_picking.xml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 0ef77eac..1ffb9aef 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -72,8 +72,6 @@ class StockPicking(models.Model): 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) - order_id = fields.Many2one('purchase.order', related='move_lines.purchase_line_id.order_id', - string="Purchase Orders", readonly=True) def action_create_invoice_from_mr(self): """Create the invoice associated to the PO. diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index 64917bad..b099b32c 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -58,7 +58,7 @@ - + -- cgit v1.2.3