Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1117 Widoki

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 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
190
0
gru 24
960
2
paź 24
1084
1
sie 24
2202
2
lip 24
1467