1、货位看板模型添加货位变更弹窗模块及其功能按钮,实现产品在同库区的内部货位移动;
This commit is contained in:
@@ -829,11 +829,6 @@ class Sf_stock_move_line(models.Model):
|
||||
for record in self:
|
||||
obj = self.env['sf.shelf.location'].search([('name', '=',
|
||||
self.destination_location_id.name)])
|
||||
# if obj.product_id and obj.product_id != record.product_id:
|
||||
# # 判断货位产品和将入到该货位的产品是否是同一种
|
||||
# raise ValidationError(
|
||||
# '【%s】产品和【%s】货位的【%s】产品不同,请重新选择【%s】产品的货位!!!' %
|
||||
# (record.product_id, obj.name, obj.product_id, record.product_id))
|
||||
if record.lot_id:
|
||||
shelf_location_obj = self.env['sf.shelf.location'].search(
|
||||
[('product_sn_id', '=', record.lot_id.id)])
|
||||
|
||||
Reference in New Issue
Block a user