Hi Guys,
I need to prompt out a confirmation box whenever a button is created. Anyone know how to do it? Kindly refer to the attached screenshot below.
Thanks.
https://dl.dropboxusercontent.com/u/42025188/confirmation_box.png
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi Guys,
I need to prompt out a confirmation box whenever a button is created. Anyone know how to do it? Kindly refer to the attached screenshot below.
Thanks.
https://dl.dropboxusercontent.com/u/42025188/confirmation_box.png
Hello,
You can create button like,
<button name="btn1" string="Button" type="object" confirm="Are you sure you want to HIT me?" />
Thanks,
Ishwar Malvi
i tried and added the type="object" confirm="Are you sure you want to HIT me?" without success.
Hello, you need to define method for button because you have added type=object, so, in py file...... def btn1(related parameteres....) hope this will help you. Thanks.
Found the solution. This need to enable debug mode instead of modifying the addons files. Then click edit form view.
Do i need to delete the .pyc file and restart the openerp to take reflect changes on the system? I have done as well.
Found the solution. This need to enable debug mode instead of modifying the addons files. Then click edit form view.
Thanks for you guys guidance.
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
1
10月 24
|
1858 | |||
|
2
1月 19
|
6702 | |||
|
0
3月 15
|
3899 | |||
|
1
3月 15
|
9522 | |||
|
1
3月 15
|
4938 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.