Romain Estievenart
3fd2debdc8
[FIX] web: Basic model X2Many commands don't handled correctly
...
Steps to reproduce:
1. Go to the Accounting / Invoicing apps
2. Open Taxes (Configuration -> Accounting / Invoicing -> Taxes)
3. Try to create a new tax and the client crash.
It occurs because the `_processX2ManyCommands()` method doesn't handle
correctly a missing `fieldInfo` on some X2Many tags.
On mobile, when calling `load_views` the kanban view is used by default.
But if the kanban isn't defined, a default kanban view with only the id
of the model is used.
In the case of the taxes form, the `default_get` retrieved for this
form refers to a Many2Many (`tag_ids`) inside a One2Many. But this field
isn't present inside the loaded kanban view, so when we process the
command defined by the `default_get`, the `field_view` item doesn't
exist (because the default kanban loaded only contains the id of the
field).
Now instead of using an undefined `fieldInfo`, we fall back to an empty
object on the missing field to avoid the crash.
closes odoo/odoo#40617
X-original-commit: 47a306a31ac6d3c9e68e83b77a80426d5c6ceb05
Signed-off-by: res-odoo <res-odoo@users.noreply.github.com >
2019-11-21 12:20:53 +00:00
..
2019-11-20 17:36:10 +00:00
2019-11-20 17:36:09 +00:00
2019-11-12 11:34:36 +00:00
2019-10-10 14:28:09 +00:00
2019-11-12 11:34:36 +00:00
2019-11-19 10:09:46 +00:00
2019-10-21 12:12:48 +00:00
2019-10-18 12:59:08 +00:00
2019-11-05 13:08:03 +01:00
2019-11-13 11:05:14 +00:00
2019-11-13 11:05:14 +00:00
2019-10-09 02:08:17 +02:00
2019-10-30 11:02:41 +00:00
2019-11-13 11:05:14 +00:00
2019-10-10 06:27:09 +00:00
2019-10-16 11:37:28 +00:00
2019-10-09 02:08:17 +02:00
2019-10-15 17:43:19 +00:00
2019-11-15 10:30:01 +00:00
2019-10-16 15:02:13 +00:00
2019-11-18 11:04:05 +00:00
2019-10-08 14:30:19 +00:00
2019-11-20 13:21:05 +00:00
2019-11-18 12:25:05 +00:00
2019-11-07 15:28:02 +00:00
2019-11-21 08:20:00 +00:00
2019-11-07 12:21:32 +00:00
2019-10-16 14:17:27 +00:00
2019-11-19 09:08:50 +00:00
2019-11-12 07:11:57 +00:00
2019-11-07 08:39:17 +00:00
2019-11-18 12:25:05 +00:00
2019-11-18 12:37:42 +00:00
2019-11-12 11:34:36 +00:00
2019-11-18 12:56:10 +00:00
2019-10-09 02:08:17 +02:00
2019-10-31 18:26:34 +00:00
2019-11-19 15:17:53 +00:00
2019-10-16 14:18:00 +00:00
2019-10-28 11:10:47 +00:00
2019-11-12 11:34:36 +00:00
2019-10-17 13:57:54 +00:00
2019-11-13 08:54:37 +00:00
2019-11-18 12:56:10 +00:00
2019-11-18 13:59:09 +00:00
2019-10-22 18:19:39 +00:00
2019-11-14 15:59:36 +00:00
2019-11-07 12:21:32 +00:00
2019-10-24 14:50:54 +00:00
2019-10-30 12:35:23 +00:00
2019-11-19 17:39:03 +00:00
2019-11-12 11:34:36 +00:00
2019-10-11 01:16:21 +00:00
2019-10-23 13:06:29 +00:00
2019-10-24 09:31:47 +00:00
2019-10-11 17:07:15 +00:00
2019-10-31 14:53:46 +00:00
2019-10-07 13:55:11 +00:00
2019-11-19 16:08:16 +00:00
2019-10-09 02:08:17 +02:00
2019-10-23 15:56:04 +00:00
2019-11-07 09:21:01 +00:00
2019-10-18 07:20:30 +00:00
2019-10-31 15:11:11 +00:00
2019-11-13 14:49:02 +00:00
2019-11-18 09:40:26 +00:00
2019-10-23 15:56:04 +00:00
2019-11-15 11:57:30 +00:00
2019-10-23 17:37:41 +00:00
2019-10-30 09:03:34 +00:00
2019-11-19 11:34:13 +00:00
2019-10-16 11:37:28 +00:00
2019-10-16 18:09:00 +00:00
2019-11-04 15:01:50 +00:00
2019-11-05 13:08:03 +01:00
2019-11-20 16:00:32 +00:00
2019-11-05 13:08:03 +01:00
2019-11-20 16:01:06 +00:00
2019-10-07 07:55:34 +00:00
2019-10-07 07:55:34 +00:00
2019-11-06 13:14:58 +00:00
2019-11-12 11:34:36 +00:00
2019-11-20 16:29:39 +00:00
2019-11-12 09:27:51 +00:00
2019-10-25 13:50:37 +00:00
2019-11-18 12:25:05 +00:00
2019-10-23 07:43:01 +00:00
2019-11-05 13:08:03 +01:00
2019-10-21 09:08:27 +00:00
2019-11-21 11:16:00 +00:00
2019-10-31 12:33:56 +00:00
2019-10-31 12:33:56 +00:00
2019-10-31 12:33:56 +00:00
2019-10-31 12:33:56 +00:00
2019-11-19 08:16:47 +00:00
2019-10-31 12:33:56 +00:00
2019-10-31 12:33:56 +00:00
2019-11-04 11:17:13 +00:00
2019-10-24 11:19:47 +00:00
2019-11-07 12:21:32 +00:00
2019-11-18 12:25:05 +00:00
2019-11-18 13:59:09 +00:00
2019-10-09 02:08:17 +02:00
2019-10-11 08:23:24 +00:00
2019-10-31 12:16:29 +00:00
2019-10-07 07:55:34 +00:00
2019-11-14 18:11:55 +00:00
2019-11-20 11:11:28 +00:00
2019-11-06 13:19:40 +00:00
2019-11-18 12:25:05 +00:00
2019-10-07 07:55:34 +00:00
2019-11-19 16:29:55 +00:00
2019-11-18 12:25:05 +00:00
2019-11-18 12:25:05 +00:00
2019-11-05 16:18:10 +01:00
2019-11-18 12:25:05 +00:00
2019-11-18 12:25:05 +00:00
2019-11-18 12:25:05 +00:00
2019-11-19 16:29:55 +00:00
2019-11-18 12:25:05 +00:00
2019-11-05 16:18:10 +01:00
2019-11-18 12:25:05 +00:00
2019-11-13 11:05:14 +00:00
2019-11-05 16:18:10 +01:00
2019-10-30 18:39:38 +00:00
2019-11-18 12:56:10 +00:00
2019-11-07 08:37:12 +01:00
2019-11-05 16:18:10 +01:00
2019-11-12 11:34:36 +00:00
2019-11-05 16:18:10 +01:00
2019-11-04 13:39:07 +00:00
2019-11-18 12:25:05 +00:00
2019-11-18 11:04:23 +00:00
2019-11-20 08:27:05 +00:00
2019-11-08 16:04:25 +00:00
2019-10-07 07:55:34 +00:00
2019-11-07 16:19:37 +00:00
2019-11-07 12:21:32 +00:00
2019-11-15 10:45:00 +00:00
2019-11-20 13:03:43 +00:00
2019-11-18 12:25:05 +00:00
2019-11-12 16:57:57 +00:00
2019-11-18 16:42:15 +00:00
2019-10-25 08:10:40 +00:00
2019-11-13 11:05:14 +00:00
2019-11-19 12:52:22 +00:00
2019-11-12 09:27:51 +00:00
2019-11-20 16:01:11 +00:00
2019-11-20 16:01:08 +00:00
2019-11-20 16:01:06 +00:00
2019-11-05 16:18:10 +01:00
2019-11-05 16:18:10 +01:00
2019-10-30 12:35:23 +00:00
2019-11-12 15:53:13 +00:00
2019-11-13 10:30:04 +00:00
2019-10-09 02:08:17 +02:00
2019-11-21 12:20:53 +00:00
2019-11-18 19:28:21 +00:00
2019-11-19 18:29:20 +00:00
2019-11-18 13:59:09 +00:00
2019-11-18 11:49:28 +00:00
2019-11-12 11:34:36 +00:00
2019-10-08 13:50:02 +00:00
2019-11-18 13:59:09 +00:00
2019-11-05 16:18:10 +01:00
2019-10-28 10:36:56 +00:00
2019-11-20 16:28:58 +00:00
2019-11-18 13:59:09 +00:00
2019-10-18 14:59:02 +00:00
2019-11-05 16:18:10 +01:00
2019-10-10 15:19:43 +00:00
2019-11-19 15:46:51 +00:00
2019-10-07 07:55:34 +00:00
2019-10-30 12:35:23 +00:00
2019-10-17 06:26:31 +00:00
2019-10-28 10:36:56 +00:00
2019-11-05 15:08:34 +00:00
2019-11-19 15:46:51 +00:00
2019-11-20 11:11:46 +00:00
2019-11-05 16:18:10 +01:00
2019-11-15 10:12:07 +00:00
2019-11-05 16:18:10 +01:00
2019-10-18 13:52:17 +00:00
2019-11-05 16:18:10 +01:00
2019-10-07 07:55:34 +00:00
2019-11-05 16:18:10 +01:00
2019-11-21 12:25:52 +00:00
2019-10-07 07:55:34 +00:00
2019-11-20 14:59:07 +00:00
2019-10-08 13:50:02 +00:00