Skip to Content
मेन्यू
This question has been flagged
1 Reply
1248 Views

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
Discard
Best Answer

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
Discard
Author

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

Related Posts Replies Views Activity
2
जुल॰ 25
496
0
दिस॰ 24
1102
2
अक्तू॰ 24
1210
1
अग॰ 24
2363
2
जुल॰ 24
1609