Hubert Van De Walle
bc326fa21e
[FIX] web: prevent multiple updates when pressing enter
...
Steps to reproduce
==================
In 16.4:
- Go to Accounting > Reconcile 8 items
- Click on the first line on the right
- Edit the label and then press Enter
- Switch to another line
=> Odoo Server Error
Cause of the issue
==================
When pressing Enter, two events are triggered: keydown and change.
In the useInputField hook, there is a listener for both of those events,
and they both end up calling `record.update` with the current value from
the input.
In the relational model, the update is locked inside a mutex.
So the first update (triggered by the keydown) does an onchange.
This onchange deletes the current records (Command.CLEAR) and returns
new records.
Once this is done, the mutex is released. The second update (triggered
by the change event) then tries the same update. Since the value was
obtained when queuing for the mutex, it uses the old (now deleted)
record.
Solution
========
This adds a test for https://github.com/odoo/odoo/pull/154991
as part of the fix got lost in a conflict resolution for previous versions.
opw-3726818
closes odoo/odoo#157155
X-original-commit: fbebffe446de9dd80db2dbe5ca7bd2746dc2a54f
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com >
Signed-off-by: Hubert Van De Walle <huvw@odoo.com >
2024-03-11 11:55:08 +00:00
..
2024-03-11 08:35:05 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-12 20:24:09 +00:00
2024-01-05 15:14:38 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-11 08:35:07 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-01 12:10:28 +00:00
2024-01-29 23:16:20 +00:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-05 20:53:25 +00:00
2024-02-29 20:40:36 +00:00
2024-03-07 11:40:25 +00:00
2024-01-03 16:59:08 +00:00
2024-02-29 10:34:16 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-03-01 12:10:26 +00:00
2024-01-18 20:16:02 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-03-07 23:41:54 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-05 04:29:57 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-15 09:30:57 +00:00
2024-03-08 12:49:02 +00:00
2024-02-23 13:10:03 +00:00
2024-02-23 13:10:03 +00:00
2024-02-28 08:15:23 +00:00
2024-02-23 13:10:03 +00:00
2024-02-23 13:10:03 +00:00
2024-02-29 20:40:36 +00:00
2024-02-05 12:20:56 +00:00
2024-02-19 12:27:48 +00:00
2024-01-16 09:55:24 +00:00
2024-01-03 16:59:08 +00:00
2024-02-03 02:06:43 +00:00
2024-02-17 00:25:58 +00:00
2024-02-29 20:40:36 +00:00
2024-02-13 20:52:18 +00:00
2024-02-13 20:52:18 +00:00
2024-02-13 20:52:18 +00:00
2024-02-07 18:34:22 +00:00
2024-03-07 15:12:17 +00:00
2024-03-08 11:17:48 +00:00
2024-02-23 13:09:53 +00:00
2024-01-03 16:59:18 +00:00
2024-03-07 05:07:08 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-03-04 08:11:59 +00:00
2024-02-29 20:40:36 +00:00
2024-03-07 15:12:15 +00:00
2024-02-29 19:00:43 +00:00
2024-02-16 02:01:35 +00:00
2024-03-04 08:11:57 +00:00
2024-03-08 12:48:55 +00:00
2024-03-08 21:21:57 +00:00
2024-03-05 18:06:27 +00:00
2024-03-08 12:48:55 +00:00
2024-01-26 06:33:41 +00:00
2024-01-16 09:55:24 +00:00
2024-02-02 10:50:51 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-16 09:55:24 +00:00
2024-03-08 11:17:47 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-03-01 21:26:54 +00:00
2024-02-22 09:06:12 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-03-06 14:30:37 +00:00
2024-02-24 08:08:30 +00:00
2024-01-15 09:30:53 +00:00
2024-01-10 05:04:28 +00:00
2024-01-26 09:13:03 +00:00
2024-02-16 08:58:21 +00:00
2024-02-29 20:40:36 +00:00
2024-02-28 19:49:05 +00:00
2024-03-11 10:17:46 +00:00
2024-02-29 20:40:36 +00:00
2024-03-11 10:17:50 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-26 09:13:08 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-26 21:07:50 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-20 05:31:55 +00:00
2024-01-16 09:55:24 +00:00
2024-03-06 14:30:35 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-11 10:17:49 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-07 08:25:54 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-01-20 09:33:37 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-02-27 17:40:50 +00:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-06 14:30:38 +00:00
2024-02-15 18:21:31 +00:00
2024-02-28 19:49:12 +00:00
2024-03-05 19:21:39 +00:00
2024-02-28 19:49:12 +00:00
2024-01-24 23:07:09 +00:00
2024-01-15 06:46:08 +00:00
2024-02-19 15:02:20 +00:00
2024-03-07 11:40:24 +00:00
2024-02-26 21:22:46 +00:00
2024-01-22 19:00:58 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-11 11:55:08 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-02-06 18:49:02 +00:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00
2024-03-10 00:13:03 +01:00