[IMP] point_of_sale: reactivating images on pos categories

This commit is contained in:
Frédéric van der Essen
2015-06-30 17:03:23 +02:00
parent cf5bc4f988
commit caa330b11c
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -871,7 +871,7 @@ td {
vertical-align: top;
display: inline-block;
font-size: 11px;
margin: 5px !important;
margin: 8px !important;
width: 120px;
height:120px;
background:#fff;
+1 -1
View File
@@ -289,7 +289,7 @@ openerp.point_of_sale.load_models = function load_models(instance, module){ //mo
},
},{
model: 'pos.category',
fields: ['id','name','parent_id','child_id'],
fields: ['id','name','parent_id','child_id','image'],
domain: null,
loaded: function(self, categories){
self.db.add_categories(categories);
@@ -661,14 +661,13 @@ openerp.point_of_sale.load_screens = function load_screens(instance, module){ //
this.el = el_node;
var hasimages = false; //if none of the subcategories have images, we don't display buttons with icons
/*
for(var i = 0; i < this.subcategories.length; i++){
if(this.subcategories[i].image){
hasimages = true;
break;
}
}
*/
var list_container = el_node.querySelector('.category-list');
if (list_container) {