diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-04-24 10:32:45 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-05-04 10:42:05 +0200 |
| commit | 6e15a9cd24eb5825ea615512a4ee834f131a60f7 (patch) | |
| tree | 99e13ecbd53cbd8cb0fb51a8d5419d214307c11c /addons/web_editor/static/lib/summernote/src/js | |
| parent | 901658df26bd3465e226fb589219d7620eda08c6 (diff) | |
[FIX] web: one2many form view with action button
Assume a one2many field inside a form, displaying field A in its
list view, and a field B in its (dialog) form view. Moreover, there
is an action button in the dialog, which updates the value of B.
Before this rev., B wasn't correctly reloaded when the button was
clicked, because the BasicModel reloaded the fields on the list
view (i.e. field A), whereas it should reload the fields in both
views.
This fix is twofold. First, we force the viewType to 'form' when
the record is reloaded, instead of the default ('list'), so that
fields in the form view are correctly reloaded. Second, when we
open the form view in the dialog, we add the fields of the list
view to the dict of fields of the form view, so that the form
is aware of those fields and can ask the model to reload them
(still without displaying them).
Fixes #24189
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js')
0 files changed, 0 insertions, 0 deletions
