11 lines
236 B
Python
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
|
|
) |