[IMP] point_of_sale: reactivating images on pos categories
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user