Commit 2a051811 by 夏超

[fix] 东联同步功能优化

parent f45ba389
...@@ -149,6 +149,9 @@ flag = True if field_value %s check_value else False ...@@ -149,6 +149,9 @@ flag = True if field_value %s check_value else False
if self.parent_model_id.model == "roke.production.task" and model_obj: if self.parent_model_id.model == "roke.production.task" and model_obj:
continue continue
if model_obj: if model_obj:
model_obj.write(model_data) data = model_obj.write(model_data)
else: else:
parent_model_.create(model_data) data = parent_model_.create(model_data)
if self.parent_model_id.model == "roke.production.task" and data.product_id:
data.routing_id = data.product_id.routing_id
data.create_work_order()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment