Files
testserver/testserver_o2b/hooks.py
T
2026-08-24 13:15:27 +02:00

11 lines
236 B
Python

# -*- 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
)