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

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.

最善の回答

May be this will helpful

 
 

アバター
破棄
最善の回答

You need to do this using XML code edit in the appropriate addons which is located in ../odoo-server/addons/

アバター
破棄
著作者

can guide me which line of code should i edit? is it attrs? thanks.

著作者 最善の回答

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
1248
2
1月 19
6266
0
3月 15
3441
1
3月 15
8906
1
3月 15
4402