projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3e781
)
[IMP] Improved kanban_image for o2m list(e.g. contacts of company).
author
Jiten (OpenERP)
<jra@tinyerp.com>
Fri, 22 Jun 2012 06:14:47 +0000
(11:44 +0530)
committer
Jiten (OpenERP)
<jra@tinyerp.com>
Fri, 22 Jun 2012 06:14:47 +0000
(11:44 +0530)
bzr revid: jra@tinyerp.com-
20120622061447
-kszcg6tq9q5qjctr
addons/web_kanban/static/src/js/kanban.js
patch
|
blob
|
history
diff --git
a/addons/web_kanban/static/src/js/kanban.js
b/addons/web_kanban/static/src/js/kanban.js
index
6811953
..
483f84a
100644
(file)
--- a/
addons/web_kanban/static/src/js/kanban.js
+++ b/
addons/web_kanban/static/src/js/kanban.js
@@
-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) {