コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1212 ビュー

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
435
0
12月 24
1078
2
10月 24
1167
1
8月 24
2316
2
7月 24
1559