Odoo Help


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

Stefan Reisich
on 4/11/13, 8:22 AM 1,589 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 (ERP Harbor Consulting Services)
on 4/11/13, 8:46 AM

updated the question...

Rove.design GmbH, Stefan Reisich
on 4/11/13, 9:34 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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