优化制造
This commit is contained in:
@@ -265,6 +265,7 @@ class MrpProduction(models.Model):
|
||||
def _create_workorder3(self):
|
||||
programming_no = None
|
||||
product_id_new = None
|
||||
production_ids = []
|
||||
for production in self:
|
||||
if not production.bom_id or not production.product_id:
|
||||
continue
|
||||
@@ -295,6 +296,8 @@ class MrpProduction(models.Model):
|
||||
'state': 'pending',
|
||||
}]
|
||||
if production.product_id.categ_id.type == '成品':
|
||||
if production_ids is None:
|
||||
production_ids.append({production.name})
|
||||
if programming_no is None:
|
||||
production.fetchCNC()
|
||||
programming_no = production.programming_no
|
||||
|
||||
Reference in New Issue
Block a user