Files
testserver/testserver_o2b/hooks.py
2026-07-13 14:52:53 +02:00

9 lines
222 B
Python

# -*- coding: utf-8 -*-
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.logging'].sudo().cleanup_unneeded_filestore_attachments(limit=50)