Joseph Caburnay
da27a4d5f1
[IMP] web: show clipboard field even if it's empty
...
**Issue:**
When a copy clipboard field is empty, there is no way to edit it
because the Field component is not shown.
This issue can be reproduced using any type of copy clipboard field:
- CopyClipboardChar
- CopyClipboardText
- CopyClipboardURL
Check the following video for illustration:
https://youtu.be/CTzqJRtwqv0
**Solution:**
This PR proposes a fix of *always* showing the copy clipboard field
(together with the copy button) even if the content is empty.
For illustration, check: https://youtu.be/jMM7zn_mFCU
**Notable changes:**
- The modified tests were using a wrong class name. But since they were
asserting the "non-existence" of the copy button, they were working.
- We are casting null text field to empty string (just like char field)
so that we avoid crash (in dev mode) when passing a "boolean" as 'content'
props to the 'CopyButton' component. This is asserted in the augmented
test case where we also try to render an empty text field.
closes odoo/odoo#104248
Task-id: 2861388
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com >
2022-11-04 14:00:27 +01:00
..
2022-11-04 11:58:59 +01:00
2022-10-25 18:44:57 +02:00
2022-10-04 07:28:57 +02:00
2022-10-11 18:56:25 +02:00
2022-10-09 22:04:00 +02:00
2022-10-25 18:44:57 +02:00
2022-09-24 15:00:56 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 14:20:59 +02:00
2022-10-25 18:44:57 +02:00
2022-10-28 12:20:59 +02:00
2022-09-17 00:51:32 +02:00
2022-10-09 22:04:00 +02:00
2022-09-20 13:48:49 +02:00
2022-09-16 20:51:56 +02:00
2022-09-16 20:51:56 +02:00
2022-10-06 14:56:52 +02:00
2022-10-11 13:15:12 +02:00
2022-10-06 14:56:52 +02:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00
2022-10-07 14:36:49 +02:00
2022-10-25 13:03:07 +02:00
2022-10-21 17:17:07 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-30 09:31:52 +02:00
2022-09-20 13:48:49 +02:00
2022-09-30 09:31:52 +02:00
2022-10-26 14:05:26 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 20:19:49 +02:00
2022-10-28 14:21:13 +02:00
2022-11-02 10:40:08 +01:00
2022-09-08 09:38:35 +02:00
2022-09-20 13:48:49 +02:00
2022-11-02 12:37:04 +01:00
2022-10-17 12:13:24 +02:00
2022-10-25 15:03:28 +02:00
2022-10-26 19:03:55 +02:00
2022-10-25 16:12:05 +02:00
2022-09-20 13:48:49 +02:00
2022-10-06 18:00:49 +02:00
2022-10-11 13:15:12 +02:00
2022-11-03 08:42:52 +01:00
2022-10-07 11:13:17 +02:00
2022-10-06 14:56:52 +02:00
2022-10-07 21:43:23 +02:00
2022-10-06 14:56:52 +02:00
2022-10-29 12:05:55 +02:00
2022-10-10 16:11:01 +02:00
2022-10-04 07:28:57 +02:00
2022-09-28 20:29:50 +02:00
2022-10-10 16:10:52 +02:00
2022-10-25 16:11:59 +02:00
2022-09-14 20:25:01 +02:00
2022-10-31 11:41:54 +01:00
2022-10-28 20:39:58 +02:00
2022-10-23 12:30:03 +02:00
2022-11-03 09:37:03 +01:00
2022-09-30 09:32:23 +02:00
2022-09-24 15:00:56 +02:00
2022-10-28 20:39:58 +02:00
2022-10-27 10:37:34 +02:00
2022-09-30 09:31:52 +02:00
2022-10-21 11:09:14 +02:00
2022-10-21 11:09:22 +02:00
2022-10-06 14:56:52 +02:00
2022-10-28 20:39:58 +02:00
2022-10-27 16:44:13 +02:00
2022-10-06 14:56:52 +02:00
2022-10-06 19:04:28 +02:00
2022-09-29 09:08:50 +02:00
2022-09-14 20:25:01 +02:00
2022-11-04 01:57:13 +01:00
2022-09-20 13:48:49 +02:00
2022-09-14 20:25:01 +02:00
2022-10-26 01:58:35 +02:00
2022-10-21 12:06:04 +02:00
2022-09-15 22:37:50 +02:00
2022-09-26 09:36:02 +02:00
2022-10-09 22:04:00 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 20:39:58 +02:00
2022-09-20 13:48:49 +02:00
2022-10-18 21:48:02 +02:00
2022-10-25 18:44:57 +02:00
2022-11-02 11:38:38 +01:00
2022-10-25 18:44:57 +02:00
2022-11-02 10:40:16 +01:00
2022-10-04 13:29:08 +02:00
2022-11-02 12:37:16 +01:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-04 13:29:08 +02:00
2022-09-14 20:25:01 +02:00
2022-08-31 16:05:10 +02:00
2022-08-25 19:56:56 +02:00
2022-10-19 16:09:55 +02:00
2022-10-19 16:09:55 +02:00
2022-10-19 16:09:55 +02:00
2022-10-25 18:44:57 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-11 16:57:11 +02:00
2022-10-05 11:04:20 +02:00
2022-11-02 10:40:14 +01:00
2022-10-04 13:29:08 +02:00
2022-10-08 15:20:55 +02:00
2022-10-28 09:17:43 +02:00
2022-10-25 18:44:57 +02:00
2022-10-08 17:02:51 +02:00
2022-10-25 18:44:57 +02:00
2022-10-25 18:44:57 +02:00
2022-10-28 08:22:56 +02:00
2022-10-21 11:09:14 +02:00
2022-09-13 13:53:04 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-09-16 11:12:29 +02:00
2022-10-04 13:29:08 +02:00
2022-10-28 08:22:57 +02:00
2022-09-13 13:53:04 +02:00
2022-10-21 11:09:14 +02:00
2022-10-27 08:44:49 +02:00
2022-10-25 18:44:57 +02:00
2022-09-14 20:25:01 +02:00
2022-08-25 19:56:55 +02:00
2022-09-02 23:15:44 +02:00
2022-10-04 13:29:08 +02:00
2022-11-04 11:59:03 +01:00
2022-09-27 12:43:44 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-09-30 22:54:47 +02:00
2022-10-04 13:29:08 +02:00
2022-10-06 10:42:51 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-09-24 15:00:56 +02:00
2022-10-04 13:29:08 +02:00
2022-11-04 09:52:54 +01:00
2022-10-07 12:41:12 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 16:12:15 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-10-25 13:03:28 +02:00
2022-10-24 13:05:52 +02:00
2022-10-25 21:20:50 +02:00
2022-10-04 13:29:08 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-04 13:29:08 +02:00
2022-10-28 13:22:56 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-25 21:20:50 +02:00
2022-10-04 13:29:08 +02:00
2022-08-25 19:56:56 +02:00
2022-10-04 13:29:08 +02:00
2022-09-13 13:53:04 +02:00
2022-10-10 16:11:01 +02:00
2022-10-17 13:09:20 +02:00
2022-09-20 13:48:49 +02:00
2022-10-26 16:07:18 +02:00
2022-11-03 22:39:49 +01:00
2022-10-31 18:52:59 +01:00
2022-10-06 14:56:52 +02:00
2022-09-24 15:00:56 +02:00
2022-10-21 11:09:14 +02:00
2022-11-03 16:43:29 +01:00
2022-09-06 12:01:29 +02:00
2022-09-06 12:01:29 +02:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-28 20:29:51 +02:00
2022-10-25 16:11:59 +02:00
2022-11-04 13:00:55 +01:00
2022-10-28 22:44:49 +02:00
2022-10-25 14:03:21 +02:00
2022-09-20 13:48:49 +02:00
2022-10-05 14:26:14 +02:00
2022-10-05 14:26:14 +02:00
2022-10-06 19:03:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-24 14:12:23 +02:00
2022-10-26 15:06:48 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-18 18:58:37 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-12 08:33:40 +02:00
2022-10-28 09:17:56 +02:00
2022-10-26 00:55:05 +02:00
2022-11-02 11:38:38 +01:00
2022-10-18 13:17:31 +02:00
2022-09-24 15:00:56 +02:00
2022-10-20 09:20:54 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-24 15:00:56 +02:00
2022-10-21 15:19:13 +02:00
2022-10-28 10:17:52 +02:00
2022-09-24 15:00:56 +02:00
2022-10-24 16:12:54 +02:00
2022-09-14 21:22:05 +02:00
2022-10-28 14:21:01 +02:00
2022-09-23 00:39:01 +02:00
2022-09-26 18:00:06 +02:00
2022-09-27 06:43:42 +02:00
2022-10-25 11:07:08 +02:00
2022-11-03 16:43:36 +01:00
2022-10-11 14:10:15 +02:00
2022-10-28 19:42:46 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-29 12:05:55 +02:00
2022-10-06 14:56:52 +02:00
2022-11-04 01:57:05 +01:00
2022-11-04 10:54:57 +01:00
2022-09-24 15:00:56 +02:00
2022-11-04 10:54:57 +01:00
2022-10-17 10:11:09 +02:00
2022-10-08 13:30:24 +02:00
2022-11-02 17:38:57 +01:00
2022-10-31 10:41:44 +01:00
2022-09-20 13:48:49 +02:00
2022-10-10 13:00:43 +02:00
2022-11-02 13:36:14 +01:00
2022-10-05 19:38:45 +02:00
2022-11-03 14:11:32 +01:00
2022-11-02 15:34:30 +01:00
2022-10-25 16:12:04 +02:00
2022-10-29 12:05:55 +02:00
2022-10-27 18:43:08 +02:00
2022-09-20 13:48:49 +02:00
2022-09-27 12:43:50 +02:00
2022-10-24 17:07:10 +02:00
2022-10-11 20:25:36 +02:00
2022-10-03 21:23:00 +02:00
2022-10-09 22:03:50 +02:00
2022-10-10 19:55:43 +02:00
2022-10-28 09:17:50 +02:00
2022-09-23 07:21:37 +02:00
2022-10-09 22:03:50 +02:00
2022-10-18 13:16:57 +02:00
2022-11-04 01:57:13 +01:00
2022-10-17 12:13:25 +02:00
2022-11-03 08:42:51 +01:00
2022-11-03 15:42:50 +01:00
2022-09-20 13:48:49 +02:00
2022-11-03 09:37:08 +01:00
2022-10-28 08:22:57 +02:00
2022-10-27 18:43:14 +02:00
2022-10-04 08:30:44 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-10-04 08:30:44 +02:00
2022-10-12 18:58:43 +02:00
2022-09-30 09:31:52 +02:00
2022-09-30 09:31:52 +02:00
2022-10-06 18:00:54 +02:00
2022-11-04 11:58:54 +01:00
2022-10-28 09:17:45 +02:00
2022-08-29 22:42:54 +02:00
2022-09-20 13:48:49 +02:00
2022-10-23 12:30:03 +02:00
2022-09-20 13:48:49 +02:00
2022-10-28 00:50:54 +02:00
2022-10-10 16:11:01 +02:00
2022-08-25 19:56:48 +02:00
2022-09-06 10:57:59 +02:00
2022-09-24 10:53:11 +02:00
2022-11-02 10:40:05 +01:00
2022-10-28 20:39:58 +02:00
2022-10-26 00:55:05 +02:00
2022-09-01 15:32:44 +02:00
2022-10-04 16:01:19 +02:00
2022-10-12 10:34:45 +02:00
2022-10-20 12:19:25 +02:00
2022-09-09 13:38:08 +02:00
2022-10-06 00:37:25 +02:00
2022-09-24 15:00:56 +02:00
2022-10-06 14:56:52 +02:00
2022-11-04 14:00:27 +01:00
2022-11-03 23:35:10 +01:00
2022-10-27 14:41:17 +02:00
2022-10-27 14:41:17 +02:00
2022-10-27 14:41:17 +02:00
2022-11-03 23:35:10 +01:00
2022-10-28 18:50:49 +02:00
2022-09-12 17:33:39 +02:00
2022-10-09 22:04:00 +02:00
2022-10-12 10:35:05 +02:00
2022-10-12 10:35:05 +02:00
2022-10-28 18:50:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-24 15:00:56 +02:00
2022-09-20 13:48:49 +02:00
2022-09-06 12:01:37 +02:00
2022-10-12 10:35:05 +02:00
2022-10-12 10:35:05 +02:00
2022-11-04 14:00:24 +01:00
2022-10-10 19:03:15 +02:00
2022-10-12 10:35:05 +02:00
2022-09-20 13:48:49 +02:00
2022-09-14 20:25:01 +02:00
2022-11-03 16:43:45 +01:00
2022-10-28 18:50:49 +02:00
2022-10-25 14:03:08 +02:00
2022-09-14 20:25:01 +02:00
2022-10-10 16:11:01 +02:00
2022-11-02 21:16:56 +01:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-09-20 13:48:49 +02:00
2022-10-12 10:35:05 +02:00
2022-08-31 23:50:06 +02:00
2022-10-28 09:17:57 +02:00
2022-09-09 13:38:08 +02:00
2022-09-09 13:38:08 +02:00
2022-10-06 14:56:52 +02:00
2022-11-02 10:40:16 +01:00
2022-09-14 20:25:01 +02:00
2022-10-06 14:56:52 +02:00
2022-10-04 16:01:08 +02:00
2022-09-20 13:48:49 +02:00
2022-10-06 14:56:52 +02:00
2022-10-12 10:35:05 +02:00
2022-09-12 12:43:41 +02:00
2022-09-20 19:21:15 +02:00
2022-10-02 23:19:45 +02:00
2022-10-12 10:35:05 +02:00
2022-09-20 13:48:49 +02:00
2022-10-24 14:12:34 +02:00
2022-09-20 13:48:49 +02:00
2022-11-03 08:42:52 +01:00
2022-11-03 08:42:52 +01:00
2022-10-06 14:56:52 +02:00
2022-09-20 13:48:49 +02:00