添加功能
This commit is contained in:
@@ -266,5 +266,4 @@
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -181,7 +181,10 @@ class SoongWorkflowCommentWizard(models.TransientModel):
|
||||
('name', '=', link.name),
|
||||
('workflow_id', '=', workflow_id.id)
|
||||
])
|
||||
button = node.button_ids[0] if node.button_ids else False
|
||||
if node.button_ids[0].name != '转交':
|
||||
button = node.button_ids[-1] if node.button_ids else False
|
||||
else:
|
||||
button = node.button_ids[0] if node.button_ids else False
|
||||
if not button:
|
||||
return self.env['hr.employee']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user