df52c0297f3eea7767b81fe2a6f5704cc843cd76
# Issue A Dropdown is not closed when a child ViewButton is clicked. # Solution Make the ViewButton close the Dropdown. # Note Usually, a dropdown is closed by a DropdownItem component. This is not the case here, because the clicks on view buttons are stopped (see the view button template). Letting them bubble would close their eventual parent dropdown, but it brings other issues (e.g. for a view button in a list renderer's group row, or view buttons that could get interpreted as action links under some conditions <a type="action" .../>). Instead of looking in the env to close the parent dropdown if any, an alternative solution would be to extend the ViewButton component, wrap it in a DropdownItem component, and reroute its `onClick` handler to the DropdownItem's `onSelected` prop. But this requires some preparation at the form compiler level (when compiling the status bar buttons), which we thought was overengineering at the time of writing. closes odoo/odoo#98399 Signed-off-by: Samuel Degueldre <sad@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%