[IMP] Improved kanban_image for o2m list(e.g. contacts of company).

bzr revid: jra@tinyerp.com-20120622061447-kszcg6tq9q5qjctr
This commit is contained in:
Jiten (OpenERP) 2012-06-22 11:44:47 +05:30
parent 8f3e781fd2
commit 70b78feb63
1 changed files with 3 additions and 0 deletions

View File

@ -718,6 +718,9 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({
// Set the cache duration in seconds.
url += '&cache=' + parseInt(cache, 10);
}
if (typeof(id)=="string" && this.record[field].value && this.record[field].value.substr(0, 10).indexOf(' ') == -1) {
url = 'data:image/png;base64,' + this.record[field].value;
}
return url;
},
kanban_text_ellipsis: function(s, size) {