summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorBenoit Socias <bso@odoo.com>2020-11-10 15:35:39 +0000
committerJeremy Kersten <jke@odoo.com>2020-11-24 18:22:13 +0000
commit68fe267bcbfd3f2e6ce4b5465d27e0b5ef416600 (patch)
tree1cb59676c390092955f21810579f05f1655aa421 /addons
parentaf14148b69ad1a7704a759e6ec33b035b88df8c9 (diff)
[FIX] portal: detect attachment selection even when same as previous
Before this commit selecting the same attachment was not detected, which was a problem when the attachment had been mistakenly removed After this commit when the same attachment is selected several times in a row it still triggers the upload and gets attached https://github.com/odoo/odoo/issues/42364 closes odoo/odoo#62277 X-original-commit: e9b1bca1d48afff8313d106266b02793cf77ab79 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/portal/static/src/js/portal_composer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/portal/static/src/js/portal_composer.js b/addons/portal/static/src/js/portal_composer.js
index 64454ae4ca8..68fb9189207 100644
--- a/addons/portal/static/src/js/portal_composer.js
+++ b/addons/portal/static/src/js/portal_composer.js
@@ -133,6 +133,8 @@ var PortalComposer = publicWidget.Widget.extend({
});
});
})).then(function () {
+ // ensures any selection triggers a change, even if the same files are selected again
+ self.$fileInput[0].value = null;
self.$sendButton.prop('disabled', false);
});
},