From 76f9b5ef3edeb9a24a2d1d26f7a08d578afb7173 Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Fri, 28 Feb 2025 08:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E7=89=B9=E6=AE=8A=E8=A1=A8?= =?UTF-8?q?=E9=9D=A2=E5=B7=A5=E8=89=BA=E5=A4=96=E5=8D=8F=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=8D=95=E7=82=B9=E5=87=BB=E3=80=90=E9=AA=8C=E8=AF=81=E3=80=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/stock.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 6363cbd3..30485988 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -625,12 +625,12 @@ class StockPicking(models.Model): workorder = move_in.subcontract_workorder_id workorders = workorder.production_id.workorder_ids subcontract_workorders = workorders.filtered(lambda wo: wo.is_subcontract == True and wo.state!='cancel').sorted('sequence') - if workorder == subcontract_workorders[-1]: - self.env['stock.quant']._update_reserved_quantity( - move_in.product_id, move_in.location_dest_id, move_in.product_uom_qty, - lot_id=move_in.move_line_ids.lot_id, - package_id=False, owner_id=False, strict=False - ) + # if workorder == subcontract_workorders[-1]: + # self.env['stock.quant']._update_reserved_quantity( + # move_in.product_id, move_in.location_dest_id, move_in.product_uom_qty, + # lot_id=move_in.move_line_ids.lot_id, + # package_id=False, owner_id=False, strict=False + # ) workorder.button_finish() picking_type_out = self.env.ref('sf_manufacturing.outcontract_picking_out').id if res and self.picking_type_id.id == picking_type_out: