[FIX] fix reloading problem (crash) in web client
authorGéry Debongnie <ged@odoo.com>
Mon, 1 Dec 2014 15:28:09 +0000 (16:28 +0100)
committerGéry Debongnie <ged@odoo.com>
Tue, 2 Dec 2014 09:19:09 +0000 (10:19 +0100)
commitbfcfc62fbfa5c75a64fbd96ac55041ce030f0db7
tree53d207f45363693a64f0d9764530e912908fdff9
parent286d7f80bf6fe930c4eac33d6498642cc4a7a2cd
[FIX] fix reloading problem (crash) in web client

The previous viewmanager (before its refactoring in sept/oct 2014) was
ignoring some promises in its do_load_state method.  The refactoring
actually fixed that, but of course, some other code was dependent on
the broken implementation.  This commit removes the use of promises in
do_load_state, which is functionally equivalent to the previous code.

As a result, it relies on some subtle timing of the creation and
initialization of various views.  It is somewhat fragile, but it is
actually what the former code did, only in a more explicit way.
addons/web/static/src/js/views.js