表面工艺类别拖动排序

This commit is contained in:
jinling.yang
2023-03-29 17:48:03 +08:00
parent 93c9287717
commit 20d9e469f5
7 changed files with 147 additions and 99 deletions

View File

@@ -127,6 +127,10 @@ class MrpProduction(models.Model):
if i == processing_panel_len and route.routing_type == '解除装夹':
workorders_values.append(
self.env['mrp.workorder'].json_workorder_str(k, production, route))
# 表面工艺
# for item in production.product_id.product_model_type_id.surface_technics_routing_tmpl_ids:
# workorders_values.append(
# self.env['mrp.workorder']._json_workorder_surface_process_str(production, item))
elif production.product_id.categ_id.type == '胚料':
embryo_routing_workcenter = self.env['sf.embryo.model.type.routing.sort'].search(
[('embryo_model_type_id', '=', production.product_id.embryo_model_type_id.id)],