[IMP] Improved kanban view

bzr revid: fme@openerp.com-20110913081533-k818up8n446jh6xc
This commit is contained in:
Fabien Meghazi 2011-09-13 10:15:33 +02:00
parent 2b8c7d5115
commit a6b981eca5
2 changed files with 3 additions and 9 deletions

View File

@ -26,7 +26,7 @@
background: #FFF;
border: 2px solid #CCC;
border-radius: 4px;
margin-bottom: 1em;
margin-bottom: 5px;
}
.openerp .oe_kanban_box_header {
background: #EEE;
@ -197,13 +197,7 @@
}
/* Alert color */
.openerp .oe_kanban_color_alert .oe_kanban_color_bglight {
background: #C66;
}
.openerp .oe_kanban_color_alert .oe_kanban_color_bgdark {
background: #E99;
}
.openerp .oe_kanban_color_alert .oe_kanban_color_border {
border-color: #900;
border-color: #c00 !important;
}

View File

@ -78,7 +78,7 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
var type = node.attrs.type || '';
if (_.indexOf('action,object,edit,delete,color'.split(','), type) !== -1) {
_.each(node.attrs, function(v, k) {
if (k.substr(0, qweb_prefix.length + 1) !== qweb_prefix + '-') {
if (_.indexOf('icon,type,name,string,context,states'.split(','), k) != -1) {
node.attrs['data-' + k] = v;
delete(node.attrs[k]);
}