1、关闭产品、采购单中关联字段的创建功能;2、优化采购入库验证条件;
This commit is contained in:
@@ -880,7 +880,7 @@ class SfStockPicking(models.Model):
|
||||
line.compute_destination_location_id()
|
||||
else:
|
||||
# 对除刀柄之外的刀具物料进行 目标货位必填校验
|
||||
if self.location_dest_id.name == '刀具房' and line.product_id.cutting_tool_material_id not in (
|
||||
if self.location_dest_id.name == '刀具房' and line.product_id.cutting_tool_material_id.name not in (
|
||||
'刀柄', False):
|
||||
raise ValidationError('请选择【%s】产品的目标货位!' % line.product_id.name)
|
||||
if line.current_location_id:
|
||||
|
||||
Reference in New Issue
Block a user