Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5201 มุมมอง

i have googled this a lot and so far i can only see either using confirm="Confirmation message"(which displays the dialog regardless of condition) or creating a wizard to achieve this.

is there any other way?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Here's one way to implement it. Add 2 buttons - one with the  confirm="Confirmation message" and one without it. Add an attrs="{'invisible': [...]}" condition to the buttons to conditionally make them visible so that the button with the confirm="Confirmation message" is visible only when your condition is fulfilled.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Check out these free apps.

https://odoo-community.org/shop/cms-status-message-781#attr=8939
https://apps.odoo.com/apps/modules/13.0/sh_message/


Hope it Helps,
Kiran K

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 19
6284
2
ส.ค. 25
2203
1
ก.ค. 25
749
1
ส.ค. 25
1150
0
พ.ค. 25
1258