[FIX] web: use mutex to wait for onchanges
authorDenis Ledoux <dle@odoo.com>
Fri, 28 Nov 2014 12:36:42 +0000 (13:36 +0100)
committerDenis Ledoux <dle@odoo.com>
Fri, 28 Nov 2014 12:39:47 +0000 (13:39 +0100)
commit45551cf78c11d70a68a695110ddb8a76a38578fa
treef790cc2bc6a184b118450b70c5488bb900f127d4
parent479d94ea149e022e54267c1acba931c0718849fa
[FIX] web: use mutex to wait for onchanges

This fix is related to c12a2e1d1650d308e39cc2b396a76eed579e2595

Mutex allow to wait sequentially for mutex
Besides, if one of the onchanges deferreds fails, it does not resolve the mutex until all deferreds of the mutex are resolved.

Besides, we now wait for the onchanges mutex between each field commited value (line 596) in case the commited value leaded to a new onchanges, that we should wait for before commiting the rest of the values.
addons/web/static/src/js/view_form.js