Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5212 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 19
6293
2
thg 8 25
2229
1
thg 7 25
765
1
thg 8 25
1150
0
thg 5 25
1260