in attachment(s) menu I want to reduce image size on auto if it is greater than certain size.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
2
回复
9094
查看
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
|
2273 | ||
|
|
1
3月 23
|
7650 | ||
|
|
2
4月 22
|
5115 | ||
|
|
0
10月 21
|
3266 | ||
|
|
2
5月 20
|
12906 |
Reference: http://learnopenerp.blogspot.com/2020/07/how-to-resize-image-on-saving-records-in-odoo.html
this will helps u