[ADD] sql_export_delta

This commit is contained in:
Holger Brunn
2024-04-27 13:42:42 +02:00
parent a309519158
commit 3e136a0fd5
18 changed files with 748 additions and 0 deletions

View 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)