1、新增功能刀具移动到线边刀库的出入库记录

This commit is contained in:
yuxianghui
2024-06-13 16:01:27 +08:00
parent 9c6ca3758b
commit aa0b6a9b21
4 changed files with 14 additions and 16 deletions

View File

@@ -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', '!=', '已拆除')])