修复工艺设计

This commit is contained in:
jinling.yang
2024-11-20 17:56:29 +08:00
parent fe4346b802
commit 11866629c5
3 changed files with 11 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ class sf_technology_design(models.Model):
def json_technology_design_str(self, k, route, i, process_parameter):
workorders_values_str = [0, '', {
'route_id': route.id,
'route_id': route.id if route.routing_type == '表面工艺' else route.route_workcenter_id.id,
'panel': k,
'process_parameters_id': False if route.routing_type != '表面工艺' else self.env[
'sf.production.process.parameter'].search(