跳至内容
菜单
此问题已终结
2 回复
8648 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
12月 24
1496
1
3月 23
6712
2
4月 22
4153
0
10月 21
2674
2
5月 20
12252