odoo/enterprise#100985

Created by Framework (ORM), Xavier Morel (xmo)
Merged at 7e2f7b8535231ceb1175fcb3e173742785365b5e

Statuses:

Linked pull requests
label
odoo-dev:19.0-guess-mimetypes-binary-xmo
head
ebf2db47b861cff045eb154ff6adc65cd7ce1a74
merged
3 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).