Skip to Content
Menu
This question has been flagged
1 Atsakyti
1234 Rodiniai

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 

Portretas
Atmesti
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

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
2
liep. 25
485
0
gruod. 24
1093
2
spal. 24
1198
1
rugp. 24
2356
2
liep. 24
1597