Bruno Boi
df52c0297f
[FIX] web: click on ViewButton will close parent Dropdown
...
# 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 >
2022-08-19 09:12:51 +02:00
..
2022-08-18 21:09:21 +02:00
2022-08-03 13:44:49 +02:00
2022-08-10 03:11:53 +02:00
2022-08-17 10:03:02 +02:00
2022-05-25 18:00:47 +02:00
2022-08-12 23:37:45 +02:00
2022-08-02 00:26:53 +02:00
2022-06-20 18:56:09 +02:00
2022-07-26 13:24:57 +02:00
2022-08-17 11:21:16 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-05-25 18:00:47 +02:00
2022-07-07 13:30:24 +02:00
2022-06-30 12:10:56 +02:00
2022-08-11 17:57:05 +02:00
2022-08-16 09:19:08 +02:00
2022-07-22 16:21:45 +02:00
2022-06-23 23:48:29 +02:00
2022-06-30 12:10:56 +02:00
2022-08-11 12:51:05 +02:00
2022-08-11 12:51:05 +02:00
2022-08-12 23:37:03 +02:00
2022-06-14 11:41:15 +02:00
2022-07-07 13:30:24 +02:00
2022-07-01 16:36:18 +02:00
2022-08-10 13:23:56 +02:00
2022-06-14 09:36:09 +02:00
2022-07-07 13:30:24 +02:00
2022-08-18 21:09:12 +02:00
2022-08-17 19:48:53 +02:00
2022-08-09 09:00:20 +02:00
2022-08-18 21:08:50 +02:00
2022-05-25 18:00:47 +02:00
2022-08-02 00:26:53 +02:00
2022-07-19 11:50:37 +02:00
2022-06-08 12:27:08 +02:00
2022-07-07 13:30:24 +02:00
2022-08-02 18:43:50 +02:00
2022-08-12 19:05:35 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 16:27:52 +02:00
2022-08-02 00:26:53 +02:00
2022-08-03 13:44:49 +02:00
2022-08-02 00:26:53 +02:00
2022-08-04 09:14:10 +02:00
2022-08-16 08:07:13 +02:00
2022-08-10 14:43:23 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 14:43:02 +02:00
2022-08-10 14:43:02 +02:00
2022-08-17 19:48:46 +02:00
2022-08-17 19:48:53 +02:00
2022-08-12 15:12:53 +02:00
2022-08-19 09:12:48 +02:00
2022-08-18 15:08:00 +02:00
2022-08-16 08:07:13 +02:00
2022-07-12 06:20:45 +02:00
2022-08-18 00:23:40 +02:00
2022-08-18 16:47:30 +02:00
2022-06-14 09:35:57 +02:00
2022-08-18 15:07:47 +02:00
2022-07-07 13:30:24 +02:00
2022-07-06 17:09:59 +02:00
2022-08-04 13:54:12 +02:00
2022-06-20 20:45:24 +02:00
2022-08-13 16:25:04 +02:00
2022-06-22 08:52:20 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 09:19:20 +02:00
2022-08-18 12:24:46 +02:00
2022-07-07 13:30:24 +02:00
2022-07-13 13:48:47 +02:00
2022-05-24 23:01:53 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-02 00:26:53 +02:00
2022-07-27 16:34:10 +02:00
2022-08-17 19:48:53 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-08-18 21:09:00 +02:00
2022-08-13 13:56:19 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-08-08 21:02:27 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-08-10 03:11:53 +02:00
2022-08-16 11:39:57 +02:00
2022-08-10 03:11:53 +02:00
2022-07-08 19:52:15 +02:00
2022-06-03 16:39:51 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-07 13:30:24 +02:00
2022-06-02 13:12:56 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-18 13:46:35 +02:00
2022-07-08 19:52:15 +02:00
2022-08-16 09:19:31 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-08 14:17:14 +02:00
2022-07-08 19:52:15 +02:00
2022-06-17 09:18:20 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-03 13:44:49 +02:00
2022-08-18 16:47:30 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-08-12 11:28:45 +02:00
2022-08-08 22:16:17 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-13 15:10:47 +02:00
2022-07-08 19:52:15 +02:00
2022-08-09 04:49:56 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-02 00:26:53 +02:00
2022-07-08 19:52:15 +02:00
2022-06-27 11:20:07 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-22 08:01:39 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-08-10 03:11:53 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-08 19:52:15 +02:00
2022-07-07 13:30:24 +02:00
2022-07-27 07:59:50 +02:00
2022-08-10 03:11:53 +02:00
2022-08-19 09:12:42 +02:00
2022-06-14 09:35:57 +02:00
2022-07-07 13:30:24 +02:00
2022-08-02 00:26:53 +02:00
2022-08-04 13:54:14 +02:00
2022-08-18 13:47:00 +02:00
2022-08-17 22:52:17 +02:00
2022-07-18 11:26:59 +02:00
2022-07-07 13:30:24 +02:00
2022-08-12 11:28:31 +02:00
2022-08-11 17:56:27 +02:00
2022-08-02 00:26:53 +02:00
2022-07-12 13:21:27 +02:00
2022-07-27 19:20:15 +02:00
2022-08-17 19:48:46 +02:00
2022-08-16 09:19:28 +02:00
2022-08-03 13:44:49 +02:00
2022-07-08 14:33:47 +02:00
2022-06-03 16:40:09 +02:00
2022-08-12 17:05:36 +02:00
2022-06-10 07:27:26 +02:00
2022-08-12 17:05:36 +02:00
2022-08-03 15:09:57 +02:00
2022-05-24 11:43:46 +02:00
2022-08-10 14:43:41 +02:00
2022-05-23 08:29:52 +02:00
2022-08-17 17:20:50 +02:00
2022-07-12 03:09:44 +02:00
2022-08-02 00:26:53 +02:00
2022-08-17 17:20:49 +02:00
2022-07-26 13:24:57 +02:00
2022-06-10 07:27:26 +02:00
2022-07-26 13:24:57 +02:00
2022-08-03 15:10:10 +02:00
2022-07-26 13:24:57 +02:00
2022-08-02 00:26:53 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 13:24:57 +02:00
2022-07-26 13:24:57 +02:00
2022-07-19 10:29:54 +02:00
2022-07-07 13:30:24 +02:00
2022-07-26 15:48:53 +02:00
2022-06-30 12:10:56 +02:00
2022-08-18 16:47:30 +02:00
2022-08-16 09:19:08 +02:00
2022-07-07 13:30:24 +02:00
2022-08-02 00:26:53 +02:00
2022-07-07 13:30:24 +02:00
2022-06-03 16:39:51 +02:00
2022-08-08 10:50:14 +02:00
2022-07-29 01:51:13 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:14 +02:00
2022-05-31 11:07:08 +02:00
2022-08-08 10:50:14 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:14 +02:00
2022-08-08 21:03:16 +02:00
2022-06-10 07:27:26 +02:00
2022-06-10 07:27:26 +02:00
2022-07-19 11:50:37 +02:00
2022-08-17 10:02:59 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-08-04 13:54:12 +02:00
2022-08-12 23:37:19 +02:00
2022-08-10 03:11:53 +02:00
2022-06-10 07:27:26 +02:00
2022-06-10 07:27:26 +02:00
2022-07-12 01:29:25 +02:00
2022-08-02 00:26:53 +02:00
2022-08-08 10:50:22 +02:00
2022-08-18 16:47:30 +02:00
2022-07-08 19:52:15 +02:00
2022-08-04 09:14:10 +02:00
2022-07-07 13:30:24 +02:00
2022-06-29 12:19:15 +02:00
2022-08-08 23:45:51 +02:00
2022-08-17 19:48:53 +02:00
2022-08-04 13:54:14 +02:00
2022-07-27 04:53:13 +02:00
2022-08-17 19:48:59 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 16:28:38 +02:00
2022-08-10 16:08:06 +02:00
2022-08-02 10:31:54 +02:00
2022-08-08 12:33:04 +02:00
2022-08-11 19:14:54 +02:00
2022-08-08 23:45:39 +02:00
2022-07-19 14:00:05 +02:00
2022-08-02 00:26:53 +02:00
2022-08-11 19:14:57 +02:00
2022-06-10 07:27:26 +02:00
2022-06-10 07:27:26 +02:00
2022-07-07 13:30:24 +02:00
2022-08-10 03:11:53 +02:00
2022-08-11 17:56:38 +02:00
2022-07-18 19:55:27 +02:00
2022-08-08 14:16:48 +02:00
2022-08-17 11:20:56 +02:00
2022-08-17 19:48:53 +02:00
2022-08-02 00:26:53 +02:00
2022-08-18 19:58:53 +02:00
2022-08-18 13:46:05 +02:00
2022-08-02 10:32:07 +02:00
2022-08-10 03:11:53 +02:00
2022-08-16 16:28:22 +02:00
2022-08-02 00:26:53 +02:00
2022-08-17 19:48:24 +02:00
2022-08-12 23:37:03 +02:00
2022-08-18 21:08:50 +02:00
2022-08-12 17:06:02 +02:00
2022-08-18 21:08:50 +02:00
2022-08-18 21:08:50 +02:00
2022-08-18 21:08:50 +02:00
2022-08-18 21:08:50 +02:00
2022-08-18 21:08:50 +02:00
2022-07-27 04:53:13 +02:00
2022-08-04 09:14:10 +02:00
2022-08-12 08:53:59 +02:00
2022-07-22 16:21:45 +02:00
2022-08-17 19:47:58 +02:00
2022-08-08 12:33:03 +02:00
2022-08-04 13:54:14 +02:00
2022-08-19 09:12:51 +02:00
2022-08-18 16:47:24 +02:00
2022-08-08 12:33:11 +02:00
2022-08-16 09:19:08 +02:00
2022-08-18 16:47:30 +02:00
2022-08-12 23:37:51 +02:00
2022-07-28 11:54:24 +02:00
2022-07-06 15:29:26 +02:00
2022-08-16 09:19:08 +02:00
2022-08-16 09:19:08 +02:00
2022-08-19 09:12:42 +02:00
2022-07-07 13:30:24 +02:00
2022-08-08 12:33:11 +02:00
2022-07-07 13:30:24 +02:00
2022-08-04 15:15:48 +02:00
2022-06-10 07:27:26 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-09 11:32:17 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 09:19:08 +02:00
2022-08-19 09:12:42 +02:00
2022-06-08 14:40:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-17 19:48:53 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:18 +02:00
2022-07-28 03:51:04 +02:00
2022-08-16 09:19:08 +02:00
2022-08-04 11:45:31 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 09:19:08 +02:00
2022-08-18 16:47:30 +02:00
2022-08-18 16:47:30 +02:00
2022-08-17 11:21:19 +02:00
2022-06-01 16:26:37 +02:00
2022-08-10 03:11:53 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-10 20:28:52 +02:00
2022-06-10 07:27:26 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-02 00:26:53 +02:00
2022-07-20 08:30:15 +02:00
2022-08-17 11:21:47 +02:00
2022-08-16 16:28:42 +02:00
2022-08-04 11:45:31 +02:00
2022-08-18 16:47:30 +02:00
2022-08-09 10:15:55 +02:00