diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-29 13:20:52 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-29 13:20:52 +0700 |
| commit | c9977d7ced930aed5e0f96c1cde30b5cd7c37c94 (patch) | |
| tree | e5468534c148cbd99748f501e5340f82677a9f1a | |
| parent | 44d1d87922f32066a1ce5548335a11403d118cf7 (diff) | |
fix stock picking purchase_id
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 2 |
2 files changed, 1 insertions, 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 @@ </field> <field name="origin" position="after"> <field name="purchase_representative_id"/> - <field name="order_id"/> + <field name="purchase_id"/> <field name="date_doc_kirim"/> <field name="summary_qty_operation"/> <field name="count_line_operation"/> |
