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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jan 19
|
5902 | ||
|
0
May 25
|
301 | ||
|
2
Apr 25
|
2474 | ||
|
1
Feb 25
|
822 | ||
|
2
Feb 25
|
1320 |