添加功能
This commit is contained in:
@@ -539,13 +539,18 @@ class SoongWorkflowMixin(models.AbstractModel):
|
||||
actual_path_links = []
|
||||
for node in actual_path_nodes[1:]:
|
||||
if node.name not in skipped_node_names:
|
||||
link = self.env['trans.link'].create({
|
||||
'node_button_id': btn_rec.id,
|
||||
'name': node.name,
|
||||
'link_type': 'trans',
|
||||
'record_id': self.id,
|
||||
})
|
||||
actual_path_links.append(link)
|
||||
for out_link in node.out_link_ids:
|
||||
target_node = out_link.node_to
|
||||
if not target_node:
|
||||
continue
|
||||
link = self.env['trans.link'].create({
|
||||
'node_button_id': btn_rec.id,
|
||||
'name': target_node.name,
|
||||
'sequence': out_link.sequence,
|
||||
'link_type': 'trans',
|
||||
'record_id': self.id,
|
||||
})
|
||||
actual_path_links.append(link)
|
||||
|
||||
if actual_path_links:
|
||||
trans_link_ids = [link.id for link in actual_path_links]
|
||||
|
||||
Reference in New Issue
Block a user