[RFR] Move module description to README

[FIX] rst line endings
[IMP] Comment on arbitrary media subtype
This commit is contained in:
Stefan Rijnhart
2014-12-08 10:28:21 +01:00
parent 3109fada7f
commit e497db6780
3 changed files with 19 additions and 17 deletions

View File

@@ -32,6 +32,7 @@ openerp.web_tree_image = function (instance) {
var value = row_data[this.id].value, src;
if (this.type === 'binary') {
if (value && value.substr(0, 10).indexOf(' ') === -1) {
// The media subtype (png) seems to be arbitrary
src = "data:image/png;base64," + value;
} else {
src = instance.session.url('/web/binary/image', {model: options.model, field: this.id, id: options.id});