Alexandre Kühn
24c7cc856f
[FIX] mail: no crash on call from another device
...
Before this commit, when in a call on another device
and then calling from another device, there might be
the following traceback:
```
TypeError: Cannot read properties of undefined (reading 'lastObservedRecords')
at ModelManager.removeListener
at RelationSet.delete
at RelationSet.clear
at ModelField._setRelationReplace
at ModelField.parseAndExecuteCommands
at ModelManager._update
at Listener.onChange
at ModelManager._notifyListenersInUpdateCycle
at ModelManager._flushUpdateCycle
at ModelManager.update
```
This is caused by removing a non-existent listener on a field, very
likely related to a relational field from the call being terminated.
This commit fixes the issue by silently skipping removal of listener
when it's undefined.
Task-3241562
closes odoo/odoo#116192
X-original-commit: 24af22187ce8401d925edb1dda02652f993c7394
Signed-off-by: Louis Wicket (wil) <wil@odoo.com >
2023-03-22 14:52:39 +01:00
..
2023-03-22 14:52:19 +01:00
2023-03-20 16:51:30 +01:00
2023-03-18 03:32:40 +01:00
2023-03-18 03:32:40 +01:00
2023-03-21 08:31:06 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-22 11:06:46 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-08 11:37:07 +01:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-15 13:19:45 +01:00
2023-03-07 11:11:51 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-16 14:12:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-16 14:12:37 +01:00
2023-03-20 16:51:28 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 12:23:45 +01:00
2023-03-14 12:23:45 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-02 19:24:45 +01:00
2023-03-08 17:33:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 19:39:09 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-01 23:28:07 +01:00
2023-03-20 18:13:23 +01:00
2023-03-21 09:36:15 +01:00
2023-03-21 18:55:55 +01:00
2023-03-22 08:19:00 +01:00
2023-03-20 16:51:06 +01:00
2023-03-20 16:51:30 +01:00
2023-03-21 09:36:12 +01:00
2023-02-15 10:14:53 +01:00
2023-03-22 00:53:57 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-20 11:20:38 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 11:20:38 +01:00
2023-03-14 09:55:52 +01:00
2023-03-14 15:52:10 +01:00
2023-02-16 09:01:07 +01:00
2023-02-17 12:07:48 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-22 14:52:39 +01:00
2023-03-21 08:31:06 +01:00
2023-03-07 10:06:13 +01:00
2023-03-20 11:20:46 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-15 07:27:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-21 08:31:11 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-15 22:06:44 +01:00
2023-03-10 11:23:51 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-01 18:43:01 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-17 22:27:30 +01:00
2023-03-17 23:24:11 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-14 13:30:05 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-10 11:23:51 +01:00
2023-03-02 19:24:45 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-08 10:31:07 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-10 13:32:41 +01:00
2023-02-27 11:47:11 +01:00
2023-02-27 11:47:11 +01:00
2023-03-07 10:06:13 +01:00
2023-03-18 03:32:40 +01:00
2023-03-15 16:08:08 +01:00
2023-03-14 12:23:45 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-17 23:24:09 +01:00
2023-03-07 10:06:13 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 18:02:19 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-18 02:14:39 +01:00
2023-03-21 08:31:06 +01:00
2023-03-18 02:14:39 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-13 15:27:58 +01:00
2023-02-17 19:30:40 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-07 10:06:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 18:13:04 +01:00
2023-03-20 16:51:30 +01:00
2023-03-22 14:52:28 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 07:58:46 +01:00
2023-03-20 16:51:30 +01:00
2023-03-21 10:44:40 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-03-22 09:16:40 +01:00
2023-03-20 16:51:30 +01:00
2023-03-14 15:52:10 +01:00
2023-03-01 17:01:17 +01:00
2023-03-17 19:22:13 +01:00
2023-03-03 17:05:07 +01:00
2023-03-09 10:51:43 +01:00
2023-03-09 10:51:43 +01:00
2023-03-20 16:51:30 +01:00
2023-03-17 22:27:21 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 10:51:29 +01:00
2023-03-16 20:37:59 +01:00
2023-03-20 16:51:30 +01:00
2023-03-07 16:56:40 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 10:51:29 +01:00
2023-03-16 14:12:37 +01:00
2023-03-05 15:12:54 +01:00
2023-03-21 23:49:31 +01:00
2023-03-16 14:12:29 +01:00
2023-03-16 09:37:19 +01:00
2023-03-09 15:54:58 +01:00
2023-03-20 16:51:30 +01:00
2023-03-21 19:54:34 +01:00
2023-03-22 14:52:30 +01:00
2023-03-21 18:56:15 +01:00
2023-03-20 15:31:17 +01:00
2023-03-21 18:56:15 +01:00
2023-03-15 13:19:45 +01:00
2023-03-10 11:23:51 +01:00
2023-03-09 15:54:58 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-22 14:52:10 +01:00
2023-03-05 15:12:54 +01:00
2023-03-16 14:12:37 +01:00
2023-03-05 15:12:54 +01:00
2023-03-05 15:12:54 +01:00
2023-03-20 16:51:30 +01:00
2023-03-03 18:10:57 +01:00
2023-02-13 15:15:34 +01:00
2023-03-15 13:19:45 +01:00
2023-03-20 16:51:30 +01:00
2023-03-13 10:53:04 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-17 15:02:46 +01:00
2023-02-24 10:06:06 +01:00
2023-03-20 18:13:04 +01:00
2023-03-08 17:33:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-09 12:01:01 +01:00
2023-03-20 20:14:50 +01:00
2023-02-22 20:26:07 +01:00
2023-03-20 19:15:22 +01:00
2023-02-13 15:15:08 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-17 11:47:09 +01:00
2023-03-17 11:47:09 +01:00
2023-03-03 19:10:10 +01:00
2023-03-22 11:06:46 +01:00
2023-03-07 02:00:06 +01:00
2023-03-07 02:00:06 +01:00
2023-03-08 21:33:03 +01:00
2023-03-10 14:38:43 +01:00
2023-03-22 14:52:06 +01:00
2023-03-20 18:13:14 +01:00
2023-03-16 18:32:59 +01:00
2023-03-08 17:33:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 19:15:25 +01:00
2023-03-20 15:31:27 +01:00
2023-03-17 11:47:09 +01:00
2023-03-17 11:47:09 +01:00
2023-02-13 22:46:41 +01:00
2023-03-14 15:52:10 +01:00
2023-03-16 07:29:49 +01:00
2023-03-07 11:11:42 +01:00
2023-03-15 13:19:45 +01:00
2023-02-24 11:11:40 +01:00
2023-03-08 17:33:37 +01:00
2023-03-20 16:51:30 +01:00
2023-03-22 11:06:46 +01:00
2023-03-22 13:42:54 +01:00
2023-03-20 14:04:24 +01:00
2023-02-21 00:47:34 +01:00
2023-03-22 13:42:54 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-02-17 09:50:50 +01:00
2023-03-15 13:19:45 +01:00
2023-03-02 19:24:45 +01:00
2023-02-17 09:50:50 +01:00
2023-03-14 15:52:10 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-16 15:19:41 +01:00
2023-03-14 15:52:10 +01:00
2023-03-20 16:51:30 +01:00
2023-02-10 14:37:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-15 13:19:45 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-02-24 18:16:11 +01:00
2023-03-16 09:37:08 +01:00
2023-03-22 09:16:43 +01:00
2023-03-15 13:19:45 +01:00
2023-03-08 17:33:37 +01:00
2023-03-21 22:25:46 +01:00
2023-03-21 22:25:45 +01:00
2023-03-14 12:23:46 +01:00
2023-03-14 12:23:45 +01:00
2023-03-08 17:33:37 +01:00
2023-03-15 13:19:45 +01:00
2023-03-21 10:44:47 +01:00
2023-03-14 15:52:10 +01:00
2023-03-07 09:02:58 +01:00
2023-03-20 16:51:30 +01:00