Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1184 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
2
juil. 25
400
0
déc. 24
1001
2
oct. 24
1131
1
août 24
2269
2
juil. 24
1512