Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1120 Представления

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
196
0
дек. 24
960
2
окт. 24
1086
1
авг. 24
2203
2
июл. 24
1468