Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
482 Переглядів

Since Odoo 16 or 17 when you upload an image to the internal notes field a document (attachment) is created (see example 2). If i delete the document, the image will get deleted as well (see example 3).

Here is the example 1. No image, nothing on internal notes, no attachments and no documents:

Here is the example 2. 1 image on internal notes, 1 attachment and 1 document (the image is a red cross):

Here is the example 3. No image on internal notes (but a placeholder instead), no attachments and no documents:


Is there a way to avoid this flow and work as in previous versions where an uploaded image inside a text field would not generate an attachment (and a document)?

Аватар
Відмінити
Найкраща відповідь

Hi,

Since Odoo 16/17, images added in HTML fields (like Internal Notes) are no longer stored inline as base64 but are saved as attachments/documents. This was a deliberate change to improve performance, avoid database bloat, and centralize file management.

There’s no setting to switch back to the old behavior. If you want images stored inline again, it requires customization of the HTML widget or upload process. However, reverting has trade-offs, such as larger database size and slower performance when many images are used.


Hope it helps

Аватар
Відмінити
Автор

Yes it does, thank you.

Найкраща відповідь

Uploading an image in an html field (like Internal Notes) always creates an ir.attachment.


If you want to prevent it, it requires code customization by overriding ir.attachment.create() and product.document.create() and restricting attachments for that field/model.


For customization,

contact: info@srikeshinfotech.com

Whatsapp: +91 75388 24350

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
груд. 24
1927
1
бер. 23
7227
2
квіт. 22
4715
0
жовт. 21
3020
2
трав. 20
12652