Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8634 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 24
1480
1
bře 23
6671
2
dub 22
4121
0
říj 21
2655
2
kvě 20
12226