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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2
Odpowiedzi
8638
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
gru 24
|
1486 | ||
How to set attachments to public?
Rozwiązane
|
|
1
mar 23
|
6678 | |
|
2
kwi 22
|
4126 | ||
|
0
paź 21
|
2664 | ||
|
2
maj 20
|
12231 |
Reference: http://learnopenerp.blogspot.com/2020/07/how-to-resize-image-on-saving-records-in-odoo.html
this will helps u