Files
Odoo-18.0-20251222/base_name_search_improved/hooks.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

16 lines
360 B
Python
Executable File

import logging
_logger = logging.getLogger(__name__)
def uninstall_hook(env):
_logger.info("Reverting Patches...")
fields_to_unlink = (
env["ir.model.fields"]
.with_context(_force_unlink=True)
.search([("name", "=", "smart_search")])
)
if fields_to_unlink:
fields_to_unlink.unlink()
_logger.info("Done!")