@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user