Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4721 Vistas

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
Descartar
Autor

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

Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ene 23
6771
1
mar 22
4920
1
feb 22
5068
0
sept 20
1868
1
jul 20
8980