跳至内容
菜单
此问题已终结
1 回复
5876 查看

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?

相关帖文 回复 查看 活动
1
2月 17
4323
0
3月 15
4788
0
11月 24
808
0
8月 24
922
1
8月 25
889