Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1222 มุมมอง

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 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
466
0
ธ.ค. 24
1091
2
ต.ค. 24
1187
1
ส.ค. 24
2346
2
ก.ค. 24
1586