Skip to Content
Menu
This question has been flagged
2 Replies
8624 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
dec 24
1475
1
mar 23
6658
2
apr 22
4116
0
okt 21
2651
2
máj 20
12221