Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2918 Weergaven

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.  

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 20
3235
1
mrt. 15
4093
2
feb. 21
6996
2
apr. 17
4903
1
aug. 25
102