博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
"go back" step in a workflow stops everything
阅读量:4055 次
发布时间:2019-05-25

本文共 1154 字,大约阅读时间需要 3 分钟。

I created a set of approvals in a Purchase Order workflow, I added a rejection step among the workflow steps. The approvals flow smoothly, my problem is that when rejecting one approval and get back to the previous workflow state everything stops and is then unable to change the state by clicking the current approval

whenever go back in any workflow one should delete then create the workflow related records in workflow tables, I faced enourmouse difficuties due to the lack of this piece of information, I put it here to share information 

pls check the method action_cancel_draft in purchase.py

def action_cancel_draft(self, cr, uid, ids, context=None):        if not len(ids):            return False        self.write(cr, uid, ids, {'state':'draft','shipped':0})        wf_service = netsvc.LocalService("workflow")        for p_id in ids:            # Deleting the existing instance of workflow for PO            wf_service.trg_delete(uid, 'purchase.order', p_id, cr)            wf_service.trg_create(uid, 'purchase.order', p_id, cr)        return True
摘自:https://www.odoo.com/forum/help-1/question/go-back-step-in-a-workflow-stops-everything-84513

转载地址:http://ecoci.baihongyu.com/

你可能感兴趣的文章
linux irqdebug
查看>>
git 常用命令
查看>>
linux位操作API
查看>>
uboot start.s文件分析
查看>>
没有路由器的情况下,开发板,虚拟机Ubuntu,win10主机,三者也可以ping通
查看>>
本地服务方式搭建etcd集群
查看>>
安装k8s Master高可用集群
查看>>
忽略图片透明区域的事件(Flex)
查看>>
忽略图片透明区域的事件(Flex)
查看>>
AS3 Flex基础知识100条
查看>>
Flex动态获取flash资源库文件
查看>>
01Java基础语法-16. while循环结构
查看>>
01Java基础语法-19. 循环跳转控制语句
查看>>
Django框架全面讲解 -- Form
查看>>
今日互联网关注(写在清明节后):每天都有值得关注的大变化
查看>>
”舍得“大法:把自己的优点当缺点倒出去
查看>>
[今日关注]鼓吹“互联网泡沫,到底为了什么”
查看>>
[互联网学习]如何提高网站的GooglePR值
查看>>
[关注大学生]求职不可不知——怎样的大学生不受欢迎
查看>>
[关注大学生]读“贫困大学生的自白”
查看>>