排程单过滤掉关联制造订单处于草稿跟工艺设计状态

This commit is contained in:
胡尧
2024-11-19 14:15:29 +08:00
parent f99a35932f
commit fabcca1188

View File

@@ -97,7 +97,7 @@ class sf_production_plan(models.Model):
修改搜索方法,只有制造订单状态为待排程时才显示
"""
domain = domain or []
domain.append(('production_id.state', '!=', 'confirmed'))
domain.append(('production_id.state', 'not in', ['draft', 'technology_to_confirmed']))
info = super(sf_production_plan, self).search_read(domain, fields, offset, limit, order)
return info