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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
2
Cevaplar
8639
Görünümler
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
0
Ara 24
|
1489 | ||
|
1
Mar 23
|
6690 | ||
|
2
Nis 22
|
4131 | ||
|
0
Eki 21
|
2664 | ||
|
2
May 20
|
12235 |
Reference: http://learnopenerp.blogspot.com/2020/07/how-to-resize-image-on-saving-records-in-odoo.html
this will helps u