Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

POS thumb images of products - not full resolution (v7)

By
Ramesh Patel
on 5/15/13, 5:04 AM 1,435 views

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

2
Ramesh Patel
On 5/17/13, 4:56 AM

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.

Fabien Pinckaers (fp)
on 5/17/13, 5:18 AM

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

Kevin Shenk
on 5/17/13, 7:31 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/15/13, 5:04 AM
Seen: 1435 times
Last updated: 3/16/15, 8:10 AM