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

I want to show alert message by JavaScript file when click on a button, which is added in XML. I try a lot by different methods but didn't reached to any solution. So, anyone can solve this problem.
My XML Code is here.

Xml Code:

<button name = "name"  type="button" onclick="updatebtn" class="btn"/>
Аватар
Отменить
Автор Лучший ответ

Hii Raaj,

It's working for form view in xml file, but i want that this alert message pop-up by javascript file when click on "My Button". Thanks for support.

Аватар
Отменить
Лучший ответ

HI Pawan, I am not sure about JS alert message for Odoo form view button,as we can provide JS alert for Odoo templates button, but you can use confirm attribute to you button to show any warning message,but it won't stop you to proceed further.

Syntax : <button name="button_name"  string="My Button"  type="object" confirm="Are you sure you want to Proceed?"/>

Аватар
Отменить
Лучший ответ

Hi! Have you found any solution?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
авг. 24
6120
1
окт. 22
23818
2
сент. 21
12487
1
авг. 21
8136
1
июл. 21
4193