Commit ca611747 by 夏超

[fix] 入库问题

parent de783233
...@@ -105,7 +105,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel): ...@@ -105,7 +105,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
if self._context.get('active_model') != "roke.production.result": if self._context.get('active_model') != "roke.production.result":
return res return res
picking_type_id = self.env.ref("roke_mes_stock.stock_picking_type_production_in", False) picking_type_id = self.env.ref("roke_mes_stock.stock_picking_type_production_in", False)
if hasattr(result, "location_id") and result.location_id: if hasattr(result, "location_id") and not result.location_id:
result.write({"location_id": picking_type_id.src_location_id.id}) result.write({"location_id": picking_type_id.src_location_id.id})
else: else:
res.update({"src_location_id": picking_type_id.src_location_id.id}) res.update({"src_location_id": picking_type_id.src_location_id.id})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment