Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2933 Переглядів

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.  

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лип. 20
3237
1
бер. 15
4096
2
лют. 21
7004
workflow api odoo 10 Вирішено
2
квіт. 17
4909
1
серп. 25
136