还原代码
This commit is contained in:
@@ -313,11 +313,10 @@ class StockRule(models.Model):
|
||||
# 根据加工面板的面数及成品工序模板生成工序设计
|
||||
i = 0
|
||||
for k in (production_item.product_id.model_processing_panel.split(',')):
|
||||
# 新增的成品工序模版暂未添加,后续添加
|
||||
if production_item.production_type == '自动化产线加工':
|
||||
model = 'sf.product.model.type.routing.sort'
|
||||
else:
|
||||
model = 'sf.product.model.type.routing.sort'
|
||||
model = 'sf.manual.product.model.type.routing.sort'
|
||||
product_routing_workcenter = self.env[model].search(
|
||||
[('product_model_type_id', '=', production_item.product_id.product_model_type_id.id)],
|
||||
order='sequence asc'
|
||||
|
||||
Reference in New Issue
Block a user