Skip to content
Snippets Groups Projects
Commit 47f64af9 authored by Pierre Rousseau's avatar Pierre Rousseau Committed by fw-bot
Browse files

[FIX] partner_autocomplete: do not crash on empty logo


Before this commit, if the user clicked on a company which have no company logo, the system did not let him create a contact.

opw-2086824

closes odoo/odoo#39054

X-original-commit: e3fe7a9af00b7afa5b03d5dcaac1d8f135cb1ea5
Signed-off-by: default avatarPierre Rousseau (pro) <pro@odoo.com>
parent d31a87c1
Branches
Tags
No related merge requests found
......@@ -100,6 +100,8 @@ var PartnerAutocompleteMixin = {
return this._getBase64Image(url).then(function (base64Image) {
// base64Image equals "data:" if image not available on given url
return base64Image ? base64Image.replace(/^data:image[^;]*;base64,?/, '') : false;
}).catch(function () {
return false;
});
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment