summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-01-22 13:59:43 +0000
committerRomain Derie <rde@odoo.com>2019-01-29 16:06:23 +0000
commit6bd579bd6b501d316761bfc50ba8bf168f776d9f (patch)
treec9538785af14d63706c505c9944c6bbc2ba14425 /addons/web/static/tests/fields/basic_fields_tests.js
parente59a9d1678e2ba2fa9e7230b5f1d72204dba3633 (diff)
[FIX] web_editor: send the html editor writes one after another
With the following view hierarchy: A | B' (oe_structure_ID view) Before this fix, when saving multiple templates at once from the same hierarchy the COW views (website) would not be saved correctly as the first call to `write` would COW the parent view, then the second concurent call to `write` would create the child specific view under the generic parent view. Instead, the generic parent should have been cloned to a specific parent view and then the child view should be COW under the specific parent. A A' | | B' B*' (This one is the old B', without B' changes in the html editor) Instead of A A' | B' Calling the `write` one after another will do the trick. Indeed, when the second call is fired, the first call has already triggered the COW behavior. Thus, the second call correctly retrieves the COW view. Another issue might still appear, if the parent view write is sent first. Indeed, the parent view will be COW, thus the specific child view (second write waiting to be fired) will be deleted to be added on the new specific hierarchy. Thus, that write will then raise an error since the view does not exist anymore. task-1934279 Fix #30447
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions