@@ -353,7 +353,7 @@ class SoongWorkflowMixin(models.AbstractModel):
|
||||
# 当前节点
|
||||
if btn_rec.name not in ['结束', '归档']:
|
||||
current_node = node_list[state_list.index(state)]
|
||||
# self.env['trans.link'].search([]).unlink() todo 待测试
|
||||
self.env['trans.link'].search([]).unlink()
|
||||
# 退回节点根据日志进行判断
|
||||
if btn_rec.name == '退回':
|
||||
approved_logs = self.log_ids.filtered(lambda log: log.approval_state == '2')
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
type="object"
|
||||
string="打印"
|
||||
class="btn-primary" invisible="not work_end"/>
|
||||
<button name="btn_exec_action" string="归档" type="object" class="oe_highlight" invisible="state != 'purchase'" context="{'btn_key':'PN8N28ZNWA','active_model':'purchase.order'}"/>
|
||||
</header>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
|
||||
Reference in New Issue
Block a user