Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1228 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
2
lug 25
473
0
dic 24
1091
2
ott 24
1193
1
ago 24
2351
2
lug 24
1590