优化返工和报废

This commit is contained in:
jinling.yang
2024-05-24 17:00:44 +08:00
parent c87f310bb3
commit 412bf4b9be
7 changed files with 79 additions and 38 deletions

View File

@@ -207,7 +207,7 @@ class StockRule(models.Model):
'''
创建工单
'''
productions._create_workorder()
productions._create_workorder(is_fetchcnc=False, scrap_production=False)
productions.filtered(lambda p: (not p.orderpoint_id and p.move_raw_ids) or \
(