跳至内容
菜单
此问题已终结
2945 查看

Odoo version 10

I want to confirm sales order as soon as it gets created. For that, I'm trying below ruby command in irb but it always returns false and does not do any transition. 

irb(main):119:0> models.exec_workflow('admin', 1, '12345678', 'sale.order', 'confirm', 20)

=> false

I'm using the administrator user only which has all rights. I'm able to confirm the order using odoo web wizard.  

形象
丢弃
相关帖文 回复 查看 活动
0
7月 20
3239
1
3月 15
4099
2
2月 21
7007
2
4月 17
4914
1
8月 25
140