Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3406 Widoki

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.  

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 20
3931
1
mar 15
4531
2
lut 21
7699
2
kwi 17
5408
1
paź 25
4027