!7969 添加功能

Merge pull request !7969 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-01-14 07:43:52 +00:00
committed by Gitee
2 changed files with 2 additions and 1 deletions
@@ -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>