Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1411 Vistas

Hi good day everyone!


I just want to ask how can I call a form view from button with js function in odoo 10.


Thank you very in advance for your answers.


Sincerely yours,

Jhonnel 

Avatar
Descartar
Mejor respuesta

Hi,

You can call the do_action in your button function to display the form view; see an example below.

this.do_action({

            type: 'ir.actions.act_window',

            Name: sale order,

            res_model: sale.order',

    res_id: 1,

            view_type: 'form',

            view_mode: 'form',

            target: 'new',

        })


Hope it helps

Avatar
Descartar
Autor

Thank you very much.. it works on me..

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
812
0
dic 24
1344
2
oct 24
1487
1
ago 24
2584
2
jul 24
1841