1、优化功能刀具安全库存数量计算方法;2、货位看板模型添加功能刀具Rfid、名称字段
This commit is contained in:
@@ -15,8 +15,9 @@ class ShelfLocation(models.Model):
|
||||
if item.product_id.categ_id.name == '功能刀具':
|
||||
tool_id = self.env['sf.functional.cutting.tool.entity'].sudo().search(
|
||||
[('barcode_id', '=', item.product_sn_id.id)])
|
||||
item.tool_rfid = tool_id.rfid
|
||||
item.tool_name_id = tool_id.id
|
||||
return True
|
||||
if tool_id:
|
||||
item.tool_rfid = tool_id.rfid
|
||||
item.tool_name_id = tool_id.id
|
||||
continue
|
||||
item.tool_rfid = ''
|
||||
item.tool_name_id = False
|
||||
|
||||
Reference in New Issue
Block a user