19 lines
490 B
Python
19 lines
490 B
Python
|
from . import models
|
||
|
|
||
|
import base64
|
||
|
|
||
|
from odoo.tools import file_open
|
||
|
|
||
|
|
||
|
def _setup_module(env):
|
||
|
if env.ref('base.main_company', False):
|
||
|
with file_open('web/static/img/favicon.ico', 'rb') as file:
|
||
|
env.ref('base.main_company').write({
|
||
|
'favicon': base64.b64encode(file.read())
|
||
|
})
|
||
|
|
||
|
|
||
|
def _uninstall_cleanup(env):
|
||
|
env['res.config.settings']._reset_light_theme_color_assets()
|
||
|
env['res.config.settings']._reset_dark_theme_color_assets()
|