Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4506 Visualizzazioni

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
Abbandona
Autore

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

Risposta migliore

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
gen 23
6371
1
mar 22
4608
1
feb 22
4481
0
set 20
1698
1
lug 20
8686