Skip to Content
Menu
This question has been flagged
2 Replies
4030 Views

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 ?


Avatar
Discard
Author

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])

Best Answer

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.

Avatar
Discard
Author Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
3
Jan 23
4834
1
Mar 22
3580
1
Feb 22
3830
0
Sep 20
1317
1
Jul 20
7816