Géry Debongnie
ae4501da9c
[FIX] web: do not lose onchange info in some rare cases
...
Here is a situation where we had a problem:
- a form view with a one2many field, which has no inline views
- the (non inline) list view has a field A, and is not editable
- the (non inline) sub form view has fields A and B, with an onchange on
B which modifies A
In that case, the user could do this:
- go to edit mode
- click on 'add' a new one2many line
- change the value of B in the form view, this changes the value of A
- click on save to close the modal form view
- click on the new o2m record to reopen the modal form view
- rechange B
=> the onchange does not work
The explanation is that when we reopen the modal, we update the known fields
information, but we had to perform a fieldviewget to fetch the list
view, so we have a full knowledge of the fields. However, the code did
not update the fields info (because it uses _.default), which means that
the onchange information contained in the form view is lost.
Note: the test system had to be adapted to more closely simulate what
actually happens. In particular, the onchange flag is no longer added
by the mock server, since it should be done by the data manager, like
'real' code. This change broke the basic model tests, which had to be
modified accordingly, by setting manually the onchange flag.
2017-11-09 14:03:35 +01:00
..
2017-11-07 11:01:14 +01:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-01 23:38:56 +01:00
2017-11-05 01:11:44 +01:00
2017-10-09 17:54:36 +02:00
2017-09-11 13:30:03 +02:00
2017-10-25 14:20:51 +02:00
2017-10-29 04:30:55 +01:00
2017-10-24 12:38:17 +02:00
2017-10-12 21:44:28 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-08-13 07:15:42 +02:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-08-13 07:15:42 +02:00
2017-07-25 12:26:50 +02:00
2017-10-29 04:30:55 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-11-08 12:55:33 +01:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-10-13 09:11:57 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-09-24 01:44:27 +02:00
2017-10-20 17:57:21 +02:00
2017-11-05 01:11:44 +01:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-12 21:44:28 +02:00
2017-09-26 16:16:50 +02:00
2017-10-01 01:44:20 +02:00
2017-10-12 21:44:28 +02:00
2017-09-26 11:47:00 +02:00
2017-11-03 13:36:41 +01:00
2017-10-26 20:07:36 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-10-31 15:25:01 +01:00
2017-07-14 14:27:38 +02:00
2017-10-26 20:07:36 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-10-12 14:09:12 +02:00
2017-10-12 21:44:28 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-10-31 15:25:01 +01:00
2017-09-26 11:47:00 +02:00
2017-10-12 21:44:28 +02:00
2017-09-24 01:44:27 +02:00
2017-10-09 12:44:22 +02:00
2017-10-31 12:07:15 +01:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-31 12:07:15 +01:00
2017-09-24 01:44:27 +02:00
2017-09-24 01:44:27 +02:00
2017-09-24 01:44:27 +02:00
2017-10-31 12:07:15 +01:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-31 12:07:15 +01:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-09-24 01:44:27 +02:00
2017-09-26 11:47:00 +02:00
2017-10-31 12:07:15 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-08 12:51:13 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-07-25 12:26:50 +02:00
2017-08-23 15:18:11 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-03 13:36:41 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-07-25 12:26:50 +02:00
2017-11-07 11:01:14 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-01 07:14:55 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-10-12 21:44:28 +02:00
2017-10-24 12:38:17 +02:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-07-25 12:26:50 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-29 04:30:55 +01:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-07 11:01:14 +01:00
2017-10-12 21:44:28 +02:00
2017-10-24 12:38:17 +02:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-11-07 11:01:14 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-29 04:30:55 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-09-24 01:44:27 +02:00
2017-09-24 01:44:27 +02:00
2017-11-05 01:11:44 +01:00
2017-11-09 14:03:35 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-07 11:38:12 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-09-26 11:47:00 +02:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-26 20:07:36 +02:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-07-25 12:26:50 +02:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-24 12:38:17 +02:00
2017-11-05 01:11:44 +01:00
2017-10-01 07:14:55 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-10-08 07:14:56 +02:00
2017-11-05 01:11:44 +01:00
2017-10-12 21:44:28 +02:00
2017-11-05 01:11:44 +01:00