跳至内容
菜单
此问题已终结
1 回复
1224 查看

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
469
0
12月 24
1091
2
10月 24
1190
1
8月 24
2348
2
7月 24
1586