Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1235 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
2
jul. 25
485
0
dec. 24
1095
2
okt. 24
1199
1
aug. 24
2356
2
jul. 24
1598