回退代码

This commit is contained in:
liaodanlong
2024-12-31 14:03:15 +08:00
parent 79ec60bd6b
commit 37476bcc88
2 changed files with 13 additions and 55 deletions

View File

@@ -113,9 +113,7 @@ class ProductionTechnologyWizard(models.TransientModel):
workorder.blocked_by_workorder_ids = blocked_by_workorder_ids[0]
productions._create_workorder(False)
if self.production_id.product_id.categ_id.type == '成品':
special_design_workorder = self.env['mrp.workorder'].search(
[('technology_design_id', 'in', special_design.ids), ('production_id', '=', special.production_id.id), ('state', '!=', 'cancel')])
productions.get_subcontract_pick_purchase(special_design_workorder)
productions.get_subcontract_pick_purchase()
productions.is_adjust = False
for item in productions:
workorder = item.workorder_ids.filtered(lambda wo: wo.state not in ('cancel')).sorted(