You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# Copyright 2019 Alexandre Díaz <dev@redneboa.es> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, SUPERUSER_ID from .models.res_company import URL_BASE
def uninstall_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) env["ir.attachment"].search([('url', 'like', '%s%%' % URL_BASE)]).unlink()
def post_init_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) env['res.company'].search([]).scss_create_or_update_attachment()
|