Odoo Help


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.


How I can overwrite tools/image.py image_resize_image()?

Stefan Reisich
on 4/11/13, 8:22 AM 1,098 views


how I can overwrite the function image_resize_image() in tools/image.py? Is it possible to crate a module overwriting this function?

The original function is called in addons/product/product.py:

'image_medium': fields.function(_get_image...

_get_image() -> tools.image_get_resized_images() -> image_resize_image_medium() -> image_resize_image()

Thank you.

When this method is called? I mean in which scenario this method is called?

Sudhir Arya (SA)
on 4/11/13, 8:46 AM

updated the question...

Stefan Reisich
on 4/11/13, 9:34 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)


Asked: 4/11/13, 8:22 AM
Seen: 1098 times
Last updated: 3/16/15, 8:10 AM