sf优化绑定托盘,工单form显示开始按钮 加工时间
This commit is contained in:
@@ -162,6 +162,9 @@ class MrpProduction(models.Model):
|
||||
for work in rec.workorder_ids:
|
||||
work.sequence = current_sequence
|
||||
current_sequence += 1
|
||||
sfa = rec
|
||||
for a in sfa:
|
||||
print(a)
|
||||
|
||||
def _create_workorder1(self, k):
|
||||
for production in self:
|
||||
@@ -194,7 +197,6 @@ class MrpProduction(models.Model):
|
||||
# 根据加工面板的面数及对应的成品工序模板生成工单
|
||||
i = 0
|
||||
production.product_id.model_processing_panel = k
|
||||
processing_panel_len = len(k)
|
||||
for k in (production.product_id.model_processing_panel.split(',')):
|
||||
routingworkcenter = self.env['sf.product.model.type.routing.sort'].search(
|
||||
[('product_model_type_id', '=', production.product_id.product_model_type_id.id)],
|
||||
|
||||
Reference in New Issue
Block a user