1、优化产品采购刀具物料生成的序列号出现不连续的问题;2、采购刀柄物料时,在入库验证环节增加Rfid是否全部录入检验。
This commit is contained in:
@@ -749,6 +749,8 @@ class SfStockPicking(models.Model):
|
||||
if move and move.product_id.cutting_tool_material_id.name == '刀柄':
|
||||
for item in move.move_line_nosuggest_ids:
|
||||
if item.location_dest_id.name == '进货':
|
||||
if not item.rfid:
|
||||
raise ValidationError('你需要提供%s的Rfid' % move.product_id.name)
|
||||
self.env['stock.lot'].search([('name', '=', item.lot_name)]).write({'rfid': item.rfid})
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user