1、货位看板模型添加货位变更弹窗模块及其功能按钮,实现产品在同库区的内部货位移动;

This commit is contained in:
yuxianghui
2024-04-19 10:49:48 +08:00
parent 67f3c312de
commit b43c3496a1
8 changed files with 135 additions and 11 deletions

View File

@@ -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)])