1、关闭产品、采购单中关联字段的创建功能;2、优化采购入库验证条件;

This commit is contained in:
yuxianghui
2024-05-14 14:09:42 +08:00
parent 48782cb62b
commit eff6ce9f1b
5 changed files with 17 additions and 7 deletions

View File

@@ -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: