コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5984 ビュー

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
4455
0
3月 15
4918
0
11月 24
919
0
8月 24
1003
2
9月 25
1315