تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2997 أدوات العرض

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
يوليو 20
3331
1
مارس 15
4142
2
فبراير 21
7056
2
أبريل 17
4948
0
أغسطس 25
157