mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[ADD] sql_export_delta
This commit is contained in:
9
sql_export_delta/hooks.py
Normal file
9
sql_export_delta/hooks.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Copyright 2024 Hunki Enterprises BV
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
|
||||
from odoo import SUPERUSER_ID, api
|
||||
|
||||
|
||||
def uninstall_hook(cr, registry):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for export in env["sql.export"].search([]):
|
||||
export._export_delta_cleanup(keep_last=False)
|
||||
Reference in New Issue
Block a user