刀具编码修改
This commit is contained in:
@@ -187,7 +187,7 @@ class CuttingToolModel(models.Model):
|
|||||||
def _get_ids(self, cutting_tool_type_code, factory_short_name):
|
def _get_ids(self, cutting_tool_type_code, factory_short_name):
|
||||||
cutting_tool_type_ids = []
|
cutting_tool_type_ids = []
|
||||||
for item in cutting_tool_type_code:
|
for item in cutting_tool_type_code:
|
||||||
cutting_tool_type = self.search([('code', '=', item.replace("JKM", factory_short_name))])
|
cutting_tool_type = self.search([('code', '=', item)])
|
||||||
if cutting_tool_type:
|
if cutting_tool_type:
|
||||||
cutting_tool_type_ids.append(cutting_tool_type.id)
|
cutting_tool_type_ids.append(cutting_tool_type.id)
|
||||||
return [(6, 0, cutting_tool_type_ids)]
|
return [(6, 0, cutting_tool_type_ids)]
|
||||||
|
|||||||
Reference in New Issue
Block a user