diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-03-21 16:04:56 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-04-26 18:32:18 +0200 |
| commit | cd2b07ea44a58f576ce8ca95acca499267afdbbf (patch) | |
| tree | b3c8107d739c7b2b257e2823a3e513991ea632f7 /addons/web/static/src/js/widgets/debug_manager.js | |
| parent | ec8699db1773381e3e5d6e999d4dee038d2b993c (diff) | |
[FIX] pad: remove wrong warning at pad creation
When creating a pad before this change these were the steps:
- modify pad URL for new pad URL
- end of record loading
This caused an issue because modifying the record at this point would
mark it as dirty before displaying it (which would result in a erroneous
warning "The record has been modified, your changes will be discarded.
Are you sure you want to leave this page ?").
With this fix:
- modifying the pad URL is done after the record is ready
- deferred have been unified (to remove possible race conditions)
closes #15239
opw-702797
forward port note: this change is needed up to saas-15, over saas-15
only a small part is needed (because x2many views are loaded with the
root view and there is one widget instance per record).
code note: it would be better to modify load_record of form view and
delay `record_loaded` upto after x2many views are loaded, but possible
impacts have been judged too risky so this is done only in pad widget.
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions
