1、根据机台换刀申请的状态,如果为报警状态就自动创建功能刀具预警记录;2、自动检索功能刀具列表的序列号所在位置,计算功能刀具的当前位置及数量;3、功能刀具安全库存模型,根据当前记录的功能刀具对象自动计算出该规则的功能刀具的当前库存,根据当前库存和最低库存量自动计算是否需要补货,如需补货,补货的数量是多少;4、关闭功能刀具预警模型界面的创建、修改、删除功能,新增搜索面板中按机床、刀位分组搜索;5、功能刀具组装模型和组装单模型新增图片字段;
This commit is contained in:
@@ -193,6 +193,8 @@ class FunctionalToolAssemblyOrder(models.TransientModel):
|
||||
alarm_value = fields.Integer(string='报警值(min)', readonly=True)
|
||||
used_value = fields.Integer(string='已使用值(min)', readonly=True)
|
||||
|
||||
image = fields.Binary('图片')
|
||||
|
||||
# 功能刀具组装信息
|
||||
# 整体式刀具型号
|
||||
integral_code_id = fields.Many2one('stock.lot', string='整体式刀具序列号',
|
||||
@@ -483,6 +485,7 @@ class FunctionalToolAssemblyOrder(models.TransientModel):
|
||||
'hiding_length': self.hiding_length,
|
||||
'assemble_status': '1',
|
||||
'tool_loading_person': self.env.user.name,
|
||||
'image': self.image,
|
||||
'tool_loading_time': fields.Datetime.now()
|
||||
}
|
||||
|
||||
@@ -515,7 +518,7 @@ class FunctionalToolAssemblyOrder(models.TransientModel):
|
||||
'cut_time': self.cut_time,
|
||||
'cut_length': self.cut_length,
|
||||
'cut_number': self.cut_number,
|
||||
'current_location_id': stock_lot.quant_ids.location_id.ids[-1],
|
||||
'image': self.image,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user