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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
8621
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Des 24
|
1474 | ||
How to set attachments to public?
Diselesaikan
|
|
1
Mar 23
|
6654 | |
How to automatically change name of ir.attachment
Diselesaikan
|
|
2
Apr 22
|
4113 | |
|
0
Okt 21
|
2649 | ||
|
2
Mei 20
|
12221 |
Reference: http://learnopenerp.blogspot.com/2020/07/how-to-resize-image-on-saving-records-in-odoo.html
this will helps u