From 4e7993d035abee4113752be9b67d8138460774d3 Mon Sep 17 00:00:00 2001 From: guanhuan Date: Mon, 30 Dec 2024 09:56:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=BD=E6=BA=AF=E5=8F=82=E8=80=83=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/stock.py | 1 + sf_manufacturing/views/stock_picking_view.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 6c70c245..48907a82 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -611,6 +611,7 @@ class StockPicking(models.Model): sale_info = production_list[0].sale_order_id if sale_info: item.sale_order_id = sale_info.id + item.retrospect_ref = sale_info.order_code if item.picking_type_id.sequence_code == 'DL': item.person_of_delivery = sale_info.person_of_delivery item.telephone_of_delivery = sale_info.telephone_of_delivery diff --git a/sf_manufacturing/views/stock_picking_view.xml b/sf_manufacturing/views/stock_picking_view.xml index 8b6fc571..6c268b82 100644 --- a/sf_manufacturing/views/stock_picking_view.xml +++ b/sf_manufacturing/views/stock_picking_view.xml @@ -17,6 +17,9 @@ stock.picking + + +