跳至內容
選單
此問題已被標幟
2 回覆
4508 瀏覽次數

Could it be that as the workflows are removed in odoo 10 i can't use the

models.exec_workflow(.....

xmlrpc API whithout actually creating a workflow myself ? All standard ones are removed starting version 9

If so are there any other ways of calling a "button" using xmlrpc api in version 10 ?


頭像
捨棄
作者

And how do i call the method associated from the api using xmlrpc:

This is the methodi try to call, I don't find it as a workflow

@api.multi

def do_new_transfer(self):

I have been trying:

models.execute_kw(db, uid, password, 'stock.picking', 'do_new_transfer', pick_id[0])

最佳答案

In odoo 10 workflows still exists but their use is getting replaced for the normal Odoo methods without being wired into workflows

You still will be able to manage workflows in v10 like explained here:

https://www.odoo.com/es_ES/forum/ayuda-1/question/odoo-v10-cycle-in-workflow-116936#answer-116958


If what you really wanna is to call a button you could check the type of your button to see if it remains as a workflow button and if not then try to call the method action associated.

頭像
捨棄
作者 最佳答案

Not sure my question was clear, but the answer you find here:

As I understand workflows has moved to methods in std odoo10, nothing is left.

You can still create new ones if you want as the functionality is there. The concept is not removed even if standard odoo is not using this functionality anymore.

The xmlrpc workflow call could be used but as there are no workflows there anymore you need to create your own.

If you want to press a button form stock_picking model u can use the execute_kw and call the method instead

    --- Snipet ---
    @api.multi
    def do_new_tranfer(self):

Answer is here:

https://www.odoo.com/forum/help-1/question/xmlrpc-confirm-picking-in-odoo-10-117802

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
1月 23
6376
1
3月 22
4616
1
2月 22
4484
0
9月 20
1698
1
7月 20
8686