diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-10 14:03:14 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-10 14:11:34 +0100 |
| commit | 4fb2e76b431d9f587d9f9a67925f6e0e56bdc683 (patch) | |
| tree | f1ea090378736a9db584421c56154c1025069f86 /doc/reference | |
| parent | abe5859559934be696e96aecee57d7c107fffe7d (diff) | |
[FIX] web: `char_domain` rendering on record switch
When using the left/riht arrow to switch of record
in a form view,
the rendering of the `char_domain` widget was done too
early, before all fields are ready / set, and if the
domain of the previous record could not be applied
on the current record, it leaded to a traceback.
This revision introduce a new deffered,
because I coudln't find one that was doing
what I was looking for:
- `is_initialized` is a defferred which is
resolved when the form view has finished
its rendering for the first time
- `reload_mutex` is a mutex used only when reloading or
switch to left/right record.
While the one needed in this case is a deferred
which is resolved when the record has finished
being rendered, wether when its when coming
from the list view to the form view (and it's
not the first time the form view is loaded,
e.g. list view -> form view -> list view -> form view, another record),
or on the switch of left/right record.
opw-671594
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions
