Compare commits
2 Commits
feature/66
...
feature/销售
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77c303e1fe | ||
|
|
ba9ce1f0ee |
@@ -2271,9 +2271,9 @@ class Cutting_tool_standard_library(models.Model):
|
||||
[('code', '=', item['chuck_code'].replace("JKM", result['factory_short_name']))]).id,
|
||||
"handle_id": False if not item['handle_code'] else self.search(
|
||||
[('code', '=', item['handle_code'].replace("JKM", result['factory_short_name']))]).id,
|
||||
"suitable_machining_method_ids": [(6, 0, [])] if not item.get(
|
||||
'suitable_machining_methods') else self.env['maintenance.equipment.image']._get_ids(
|
||||
item['suitable_machining_methods']),
|
||||
"suitable_machining_method_ids": [(6, 0, [])] if not item.get('suitable_machining_method')
|
||||
else self.env['maintenance.equipment.image']._get_ids(
|
||||
item['suitable_machining_method']),
|
||||
"blade_tip_characteristics_id": self.env['maintenance.equipment.image'].search(
|
||||
[('name', '=', item['blade_tip_characteristics'])]).id,
|
||||
"handle_type_id": self.env['maintenance.equipment.image'].search(
|
||||
@@ -2304,6 +2304,7 @@ class Cutting_tool_standard_library(models.Model):
|
||||
("active", 'in', [True, False])])
|
||||
cutting_tool_type = self.env['sf.cutting.tool.type'].search(
|
||||
[("code", '=', item['cutting_tool_type_code'])])
|
||||
|
||||
cutting_tool_material = self.env['sf.cutting.tool.material'].search(
|
||||
[("code", '=', item['cutting_tool_material_code'])])
|
||||
materials_model = self.env['sf.materials.model'].search(
|
||||
|
||||
Reference in New Issue
Block a user