排程单过滤掉关联制造订单处于草稿跟工艺设计状态
This commit is contained in:
@@ -97,7 +97,7 @@ class sf_production_plan(models.Model):
|
|||||||
修改搜索方法,只有制造订单状态为待排程时才显示
|
修改搜索方法,只有制造订单状态为待排程时才显示
|
||||||
"""
|
"""
|
||||||
domain = domain or []
|
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)
|
info = super(sf_production_plan, self).search_read(domain, fields, offset, limit, order)
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user