[MiG] port from 19

This commit is contained in:
2026-08-24 12:42:06 +02:00
parent b8c3e95031
commit 5b874d250a
14 changed files with 393 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
from odoo import api, SUPERUSER_ID
def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.logging'].sudo().cleanup_unneeded_filestore_attachments(
limit=50
)