# -*- coding: utf-8 -*- from odoo import api def post_init_hook(env): env['ir.logging'].sudo().cleanup_unneeded_filestore_attachments(limit=50)