Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5982 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

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')}); }, });

Аватар
Відмінити

thanks, we applied your suggestion in trunk.

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

Related Posts Відповіді Переглядів Дія
1
лют. 17
4455
0
бер. 15
4917
0
лист. 24
919
0
серп. 24
1003
2
вер. 25
1315