The event listeners were added to the upload object instead of the xhr object making them being called before they were supposed to. closes odoo/odoo#102061 X-original-commit: 804467d7b0a583ab36a47212d482b41d29ca2203 Related: odoo/enterprise#32247 Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>