File cleanup
This commit is contained in:
8
testserver_o2b/hooks.py
Normal file
8
testserver_o2b/hooks.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- 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)
|
||||
Reference in New Issue
Block a user