Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6010 มุมมอง

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
4479
0
มี.ค. 15
4938
0
พ.ย. 24
926
0
ส.ค. 24
1014
Slow product loading times POS 18 ODOO แก้ไขแล้ว
2
ก.ย. 25
1337