diff --git a/addons/account/static/src/js/bills_upload.js b/addons/account/static/src/js/bills_upload.js index 7b0a3fa3f9fab889f77c20b45407f9e647bc4483..8ba2ed8305e62826fb5c30d00235379f890c1ac2 100644 --- a/addons/account/static/src/js/bills_upload.js +++ b/addons/account/static/src/js/bills_upload.js @@ -42,6 +42,9 @@ odoo.define('account.upload.bill.mixin', function (require) { context: this.initialState.context, }).then(function(result) { self.do_action(result); + }).catch(function () { + // Reset the file input, allowing to select again the same file if needed + self.$('.o_vendor_bill_upload .o_input_file').val(''); }); },