[FIX] web: make loading promise boolean-returning,

The new handler changes the behavior of `wait_ready`: before it would
wait for the `ready_code` to be `true` *or a settled promise*.

Now it waits for `wait_ready` to resolve to true, whether it's a
promise or not.

Part-of: odoo/odoo#77735
This commit is contained in:
Xavier Morel
2021-10-25 09:53:11 +00:00
parent 2e8647bf16
commit 7962484c81
+1 -1
View File
@@ -271,7 +271,7 @@
unloaded: unloaded ? unloaded.map((mod) => mod.name) : [],
cycle,
};
didLogInfoResolve();
didLogInfoResolve(true);
};
odoo.processJobs = function (jobs, services) {
var job;