Files
odoo_source/addons
MerlinGuillaume 93df76fedb [FIX] web: disable click on list action with target new
When importing data and checking the possible values of a field,
clicking on one of the records to open it throws an error

Steps to reproduce:
1. Install Projects
2. Go to Project > My Tasks and trigger the list view
3. Select any record and export it (check the import-compatible export
   option)
4. Open the exported file and modify the `project_id` to a non-existing
   project name
5. Click on Favorites > Import records
6. Upload the modified file and click on 'TEST'
7. In the `project_id` field, click on 'See possible values'
8. Click on any project, an error is thrown

Solution:
Prevent the form from being opened when the action is in target "new"

Problem:
Opening the record in a target new throws the error `switchView
called but the current controller isn't a view`

opw-3161777

closes odoo/odoo#121384

X-original-commit: 63d43713ea5b2efba2e63b1735954bb2069bc6f4
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2023-05-15 12:56:20 +02:00
..
2023-05-12 22:59:22 +02:00
2023-03-20 16:51:30 +01:00
2023-05-12 22:59:22 +02:00
2023-03-20 16:51:30 +01:00
2023-05-12 22:59:14 +02:00
2023-05-12 22:59:22 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:22 +02:00
2023-05-12 22:59:16 +02:00
2023-05-12 22:59:23 +02:00
2023-03-20 16:51:30 +01:00
2023-05-12 22:59:22 +02:00
2023-05-12 22:59:22 +02:00
2023-05-11 18:24:51 +02:00
2023-05-11 12:01:16 +02:00
2023-05-11 18:25:38 +02:00
2023-05-10 19:16:47 +02:00
2023-05-11 13:54:59 +02:00
2023-05-10 18:16:24 +02:00
2023-05-10 18:16:14 +02:00
2023-05-11 13:54:53 +02:00
2023-05-10 13:21:32 +02:00
2023-05-11 12:01:18 +02:00
2023-05-10 18:16:08 +02:00
2023-05-10 18:16:08 +02:00
2023-05-11 12:01:26 +02:00
2023-05-10 18:16:21 +02:00
2023-05-10 20:15:02 +02:00
2023-05-10 20:14:51 +02:00
2023-05-11 12:01:13 +02:00
2023-05-10 13:21:34 +02:00
2023-05-10 20:15:04 +02:00
2023-05-11 12:01:29 +02:00
2023-05-10 19:16:49 +02:00
2023-05-10 20:15:07 +02:00
2023-05-12 22:59:22 +02:00
2023-05-10 18:16:16 +02:00
2023-05-10 20:14:59 +02:00
2023-05-10 20:15:23 +02:00
2023-05-10 20:14:56 +02:00
2023-05-11 18:24:53 +02:00
2023-05-11 13:54:51 +02:00
2023-05-10 18:16:06 +02:00
2023-05-11 10:40:47 +02:00
2023-05-10 13:21:24 +02:00
2023-05-10 20:15:12 +02:00
2023-05-10 13:21:19 +02:00
2023-05-11 10:40:53 +02:00
2023-05-11 10:40:55 +02:00
2023-05-11 12:01:21 +02:00
2023-05-10 20:14:48 +02:00
2023-05-11 12:01:24 +02:00
2023-05-10 18:16:19 +02:00
2023-05-10 13:21:29 +02:00
2023-05-10 20:15:14 +02:00
2023-05-10 13:21:39 +02:00
2023-05-10 20:15:17 +02:00
2023-05-12 09:21:49 +02:00
2023-05-10 20:15:20 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:16 +02:00
2023-05-15 12:56:17 +02:00
2023-05-12 22:59:14 +02:00
2023-05-12 22:59:14 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:23 +02:00
2023-05-12 22:59:22 +02:00
2023-05-12 22:59:23 +02:00