コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4556 ビュー

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
6441
1
3月 22
4665
1
2月 22
4565
0
9月 20
1718
1
7月 20
8740