Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button Confirm attribute ignored in tree views #81359

Open
alessandro-fiorino opened this issue Dec 14, 2021 · 2 comments
Open

Button Confirm attribute ignored in tree views #81359

alessandro-fiorino opened this issue Dec 14, 2021 · 2 comments

Comments

@alessandro-fiorino
Copy link
Contributor

alessandro-fiorino commented Dec 14, 2021

Impacted versions:
V14 at least

Steps to reproduce:
add a button on a tree view with a confirm attribute i.e.

<button type="object" confirm="Are you sure ?" string="Do something" name="button_do_something"/>
Current behavior:
The method is executed immediatly without asking confirmation

Expected behavior:
A confirmation box should appear befor executing the method like when the confirm attribute is used ina form view

@odooaktiv
Copy link
Contributor

Hello @alessandro-fiorino,

I checked the issue you have reported. In Odoo, Button's confirm attribute is only supported by form view and not any other views. As you are adding it in tree view it will not work.

@alessandro-fiorino
Copy link
Contributor Author

Could it be added as a feature request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants