1、新增功能刀具列表模型自动计算功能刀具在刀具房数量功能;2、优化功能刀具安全库存模型相同功能刀具的检索条件;3、修改功能刀具组装单组装的初始位置为Production,修改功能刀具序列号的生成规则
This commit is contained in:
@@ -25,7 +25,7 @@ class FunctionalCuttingToolEntity(models.Model):
|
||||
tool_loading_length = fields.Float(string='装刀长(mm)', readonly=True)
|
||||
functional_tool_length = fields.Float(string='伸出长(mm)', readonly=True)
|
||||
effective_length = fields.Float(string='有效长(mm)', readonly=True)
|
||||
tool_room_num = fields.Integer(string='刀具房数量', readonly=True, )
|
||||
tool_room_num = fields.Integer(string='刀具房数量', readonly=True, compute='_compute_location_num')
|
||||
line_edge_knife_library_num = fields.Integer(string='线边刀库数量', readonly=True)
|
||||
machine_knife_library_num = fields.Integer(string='机内刀库数量', readonly=True)
|
||||
max_lifetime_value = fields.Integer(string='最大寿命值(min)', readonly=True)
|
||||
@@ -241,7 +241,7 @@ class RealTimeDistributionOfFunctionalTools(models.Model):
|
||||
record = self.env['sf.real.time.distribution.of.functional.tools'].search(
|
||||
[('name', '=', vals['name']), ('sf_cutting_tool_type_id', '=', vals['sf_cutting_tool_type_id']),
|
||||
('diameter', '=', vals['diameter']), ('knife_tip_r_angle', '=', vals['knife_tip_r_angle']),
|
||||
('knife_tip_r_angle', '=', vals['knife_tip_r_angle'])])
|
||||
('coarse_middle_thin', '=', vals['coarse_middle_thin'])])
|
||||
print(record)
|
||||
if len(record) > 0:
|
||||
for obj in record:
|
||||
|
||||
Reference in New Issue
Block a user