Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1826 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
2
Jul 25
1378
0
Des 24
1681
2
Okt 24
1912
1
Agu 24
3007
2
Jul 24
2229