Skip to Content
Menu
This question has been flagged
2 Replies
7535 Views

in attachment(s) menu I want to reduce image size on auto if it is greater than certain size.

Avatar
Discard
Best Answer

you can use odoo tools

from odoo import tools

tools.image_resize_images()

for more info about this function see this

https://github.com/odoo/odoo/blob/14f59f4b780fa1e757cfce6a46c62c7a6b00d13e/odoo/tools/image.py#L21

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
29
1
Mar 23
4550
2
Apr 22
2266
0
Oct 21
1642
2
May 20
10886