콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6033 화면

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
4520
0
3월 15
4987
0
11월 24
938
0
8월 24
1039
2
10월 25
60