Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1286 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
608
0
pro 24
1192
2
říj 24
1343
1
srp 24
2463
2
čvc 24
1691