Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
8610 Vistas

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 24
1473
1
mar 23
6651
2
abr 22
4109
0
oct 21
2641
2
may 20
12219