外协调拨单不同产品的调拨单混合到一起了
This commit is contained in:
@@ -131,6 +131,8 @@ class PurchaseOrder(models.Model):
|
||||
lambda wk: wk.location_id.name == '制造前' and wk.location_dest_id.name == '外协加工区')
|
||||
move_out = picking_id.move_ids
|
||||
for mo in move_out:
|
||||
if production_id.bom_id.bom_line_ids.product_id.id != move_out.product_id:
|
||||
continue
|
||||
if mo.state != 'done':
|
||||
mo.write({'state': 'assigned', 'production_id': False})
|
||||
if not mo.move_line_ids:
|
||||
|
||||
Reference in New Issue
Block a user