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:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
2
Réponses
8612
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
déc. 24
|
1473 | ||
|
1
mars 23
|
6653 | ||
|
2
avr. 22
|
4109 | ||
|
0
oct. 21
|
2642 | ||
|
2
mai 20
|
12219 |
Reference: http://learnopenerp.blogspot.com/2020/07/how-to-resize-image-on-saving-records-in-odoo.html
this will helps u