[FIX] web: failing onchanges should not prevent to save
authorDenis Ledoux <dle@odoo.com>
Mon, 8 Sep 2014 16:21:20 +0000 (18:21 +0200)
committerDenis Ledoux <dle@odoo.com>
Mon, 8 Sep 2014 16:27:05 +0000 (18:27 +0200)
commitc12a2e1d1650d308e39cc2b396a76eed579e2595
tree0b1121646f398aa9fc292eabc2562fdc208b3c80
parent89e179971a5e7945919769cf7f30fbdacc53afca
[FIX] web: failing onchanges should not prevent to save

This patch is related to 82adba4714d9b809aad835d0d77e6b6f9fde8ddc

With the above patch, it wasn't possible anymore to save if an onchange failed. This isn't the expected behavior.
Besides, $.when.apply($, defs) is rejected as soon as one def fails, without waiting other defs to be either resolved or rejected.

This new patch allows to save if onchange fails, and wait for onchanges sequentially.
addons/web/static/src/js/view_form.js