This question has been flagged
1 Reply
5439 Views

Hello Expert,

I install odoo9 latest build from nightly on ubuntu15.04.

For customer object or any other image field if i upload image odoo9 display warning popup Could not display Selected Image. I don't understand whats wrong ?

Avatar
Discard
Best Answer

That error is raised by Odoo when the image could not be loaded, this doesn't means that it couldn't be saved, just means that the image was not loaded ok.

Avatar
Discard
Author

Thank's for quick reply, but what is problem for loading image ?

I cannot know that for sure but here is the code responsible for that error:
-----------------------------
$img.on('error', function() {
$img.attr('src', self.placeholder);
self.do_warn(_t("Image"), _t("Could not display the selected image."));
});
So when an error occurs loading an image for a binary field that message is displayed, you could check the logs in your Odoo instance or check if the image is correclty saved.