跳至內容
選單
此問題已被標幟
1 回覆
1231 瀏覽次數

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..

相關帖文 回覆 瀏覽次數 活動
2
7月 25
476
0
12月 24
1091
2
10月 24
1195
1
8月 24
2354
2
7月 24
1592