Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
6020 Vues

How can I configure POS to load a 128x128 pixel thumb instead of the full resolution image?

Avatar
Ignorer
Auteur Meilleure réponse

I solved it my self - It speeds up the POS greatly over DSL network!.

In addons/point_of_sale/static/src/js/widgets.js

On line 500; change 'image' to 'image_medium':

get_image_url: function(category){ return instance.session.url('/web/binary/image', {model: 'pos.category', field: 'image_medium', id: category.id}); },

and in

addons/point_of_sale/static/src/js/models.js

Line 340; 'image' to 'image_medium':

module.Product = Backbone.Model.extend({ get_image_url: function(){ return instance.session.url('/web/binary/image', {model: 'product.product', field: 'image_medium', id: this.get('id')}); }, });

Avatar
Ignorer

thanks, we applied your suggestion in trunk.

This is great. Fabien, are you planning on merging this with 7.0?

Publications associées Réponses Vues Activité
1
févr. 17
4503
0
mars 15
4966
0
nov. 24
932
0
août 24
1026
2
sept. 25
1364