Commit c8445a66 by 夏超

[fix] 东联同步功能优化

parent 2a051811
...@@ -152,6 +152,6 @@ flag = True if field_value %s check_value else False ...@@ -152,6 +152,6 @@ flag = True if field_value %s check_value else False
data = model_obj.write(model_data) data = model_obj.write(model_data)
else: else:
data = parent_model_.create(model_data) data = parent_model_.create(model_data)
if self.parent_model_id.model == "roke.production.task" and data.product_id: if self.parent_model_id.model == "roke.production.task" and data.product_id and data.product_id.routing_id:
data.routing_id = data.product_id.routing_id data.routing_id = data.product_id.routing_id
data.create_work_order() 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