Browse Source

publish muk_branding - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
63b2c16fd0
  1. 11
      muk_branding/__init__.py
  2. 2
      muk_branding/views/res_config_settings_view.xml

11
muk_branding/__init__.py

@ -18,6 +18,7 @@
###################################################################################
from odoo import api, SUPERUSER_ID
from odoo.release import version_info
from odoo.tools import config, convert_file
from odoo.modules.module import get_module_resource
@ -36,11 +37,13 @@ def _patch_system():
#----------------------------------------------------------
def _install_debrand_system(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.module.module'].search([('to_buy', '=', True)]).unlink()
if version_info[5] != 'e':
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.module.module'].search([('to_buy', '=', True)]).unlink()
def _uninstall_rebrand_system(cr, registry):
filename = get_module_resource('base', 'data', 'ir_module_module.xml')
convert_file(cr, 'base', filename, {}, 'init', False, 'data', registry._assertion_report)
if version_info[5] != 'e':
filename = get_module_resource('base', 'data', 'ir_module_module.xml')
convert_file(cr, 'base', filename, {}, 'init', False, 'data', registry._assertion_report)

2
muk_branding/views/res_config_settings_view.xml

@ -28,7 +28,7 @@
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="Branding" data-key="muk_branding" groups="base.group_system">
<h2>Extensions</h2>
<div class="row mt16 o_settings_container" name="branding_parameters">
<div class="row mt16 o_settings_container" name="branding_extensions">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_muk_web_branding"/>

Loading…
Cancel
Save