9 lines
222 B
Python
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)
|