Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6002 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

thanks, we applied your suggestion in trunk.

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 17
4477
0
thg 3 15
4935
0
thg 11 24
925
0
thg 8 24
1011
2
thg 9 25
1332