Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5889 Weergaven

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

Avatar
Annuleer
Auteur Beste antwoord

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
Annuleer

thanks, we applied your suggestion in trunk.

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 17
4345
0
mrt. 15
4803
0
nov. 24
829
0
aug. 24
926
1
aug. 25
935