Files
web/web_company_color/hooks.py
2025-01-08 09:34:14 +01:00

13 lines
361 B
Python

# Copyright 2019 Alexandre Díaz <dev@redneboa.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from .models.res_company import URL_BASE
def uninstall_hook(env):
env["ir.attachment"].search([("url", "=like", "%s%%" % URL_BASE)]).unlink()
def post_init_hook(env):
env["res.company"].search([]).scss_create_or_update_attachment()