odoo/enterprise#101188

Created by fw-bot
Merged at 4436c95a707200e50d6c9e0bf0082bccbb3a5cff

Statuses:

Linked pull requests
label
odoo-dev:master-19.0-guess-mimetypes-binary-xmo-481275-fw
head
671860caea97fc847d4e4942729c704fbaaf0899
merged
2 days ago by Framework (ORM), Xavier Morel (xmo)
odoo/odoo odoo/enterprise
19.0 #238151 #100985
master #238485 #101188

[IMP] ai: don't pass str to `raw`

The cron is encoding the content to compute its checksum already.

Also don't set index_content, as far as I can tell it's unconditionally computed by ir.attachment on both create and write (via _set_attachment_data in the latter case).

Forward-Port-Of: #100985