Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2925 Lượt xem

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.  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 20
3235
1
thg 3 15
4094
2
thg 2 21
6999
2
thg 4 17
4904
1
thg 8 25
107