1、新增功能刀具移动到线边刀库的出入库记录
This commit is contained in:
@@ -108,6 +108,7 @@ class MrsShelfLocationDataSync(models.Model):
|
||||
shelf_barcode = find_our_code(item['Postion'], total_data)
|
||||
location_id = self.env['sf.shelf.location'].search([('barcode', '=', shelf_barcode)], limit=1)
|
||||
if location_id:
|
||||
# 如果是线边刀库信息,则对功能刀具移动生成记录
|
||||
if 'Tool' in item['Postion']:
|
||||
tool = self.env['sf.functional.cutting.tool.entity'].sudo().search(
|
||||
[('rfid', '=', item['RfidCode']), ('functional_tool_status', '!=', '已拆除')])
|
||||
|
||||
Reference in New Issue
Block a user