!10708 添加功能

Merge pull request !10708 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-04-11 09:09:37 +00:00
committed by Gitee
+16 -16
View File
@@ -426,22 +426,22 @@ class SoongWorkflowMixin(models.AbstractModel):
raise UserError("当前加签人员还有没有审批完成的!")
# 继续正常流程
# if btn_rec.has_comment:
return self.with_context(cx)._add_comment(log_obj, btn_rec)
if btn_rec.name == '收回':
return {
'name': '收回弹窗',
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_model': 'soong.bounced.wizard',
"target": "new",
'context': {
'default_res_id': self.id,
"default_res_model": self._name,
}
}
else:
btn_rec.with_context(cx).log()
return btn_rec.with_context(cx).run()
return self.with_context(cx)._add_comment(log_obj, btn_rec)
# if btn_rec.name == '收回':
# return {
# 'name': '收回弹窗',
# 'type': 'ir.actions.act_window',
# 'view_mode': 'form',
# 'res_model': 'soong.bounced.wizard',
# "target": "new",
# 'context': {
# 'default_res_id': self.id,
# "default_res_model": self._name,
# }
# }
# else:
# btn_rec.with_context(cx).log()
# return btn_rec.with_context(cx).run()
def _add_comment(self, logs, btn_rec):
trans_link_ids = []