Revert "修复表面工艺"

This reverts commit b5beaad7bf.
This commit is contained in:
jinling.yang
2024-11-26 15:56:22 +08:00
parent b5beaad7bf
commit 33db91f799
4 changed files with 14 additions and 23 deletions

View File

@@ -46,8 +46,8 @@ class ProductionTechnologyWizard(models.TransientModel):
if ro.route_id.routing_type == '表面工艺':
domain += [('process_parameters_id', '=', ro.process_parameters_id.id)]
elif ro.route_id.routing_tag == 'special' and ro.is_auto is False:
# display_name = ro.route_id.display_name
domain += [('id', '=', ro.route_id.id)]
display_name = ro.route_id.display_name
domain += [('name', 'ilike', display_name)]
elif ro.panel is not False:
domain += [('panel', '=', ro.panel)]
td_upd = self.env['sf.technology.design'].sudo().search(domain)