Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5890 Представления

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
4346
0
мар. 15
4803
0
нояб. 24
830
0
авг. 24
926
1
авг. 25
935