diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-02-21 12:54:41 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-02-21 13:54:47 +0000 |
| commit | 7ffe3ce5c63f01fdb95342a8a821a731f4812fd6 (patch) | |
| tree | 94260c5032b5b34bc51098bf6f0ed310c23dd0b2 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 6fc08a88ae5151b3378d01a2d963e0c4d3734a32 (diff) | |
[FIX] web: kanban: rendering of async widgets
This rev. fixes 3 issues with async (field) widgets in the kanban
view.
From rev. 5faec34a, widget'$el doesn't exist before start. This
means that for async widgets, one can't interact with the widget's
$el right after calling appentTo. In KanbanRecord, this is exactly
what we did for both field widgets (<field name=.../>) and widgets
(<widget name=.../>).
Moreover, when the kanban view was updated (e.g. when the user
refined the search using the search view), and the rendering was
async (because of the presence of an async widget), the renderer
didn't wait at all for the widget to be ready before updating the
view. This caused flickering, mostly, but also a crash in
accounting with the JournalDashboardGraph widget (because
on_attach_callabck was called before the widget was ready). To
reproduce this particular issue, go to accounting, add a filter
that doesn't match any record and save it as favorite (default),
press F5 (no record is displayed), remove the filter.
opw-1925079
opw-1925479
Fixes #30087
Closes #31254
closes odoo/odoo#31327
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
