[IMP] Improved kanban_image for o2m list(e.g. contacts of company).
bzr revid: jra@tinyerp.com-20120622061447-kszcg6tq9q5qjctr
This commit is contained in:
parent
8f3e781fd2
commit
70b78feb63
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue