diff --git a/muk_web_theme/__init__.py b/muk_web_theme/__init__.py index 5ac025d..d1c1448 100644 --- a/muk_web_theme/__init__.py +++ b/muk_web_theme/__init__.py @@ -17,6 +17,8 @@ # ################################################################################### +from odoo import api, SUPERUSER_ID + from . import models #---------------------------------------------------------- @@ -28,4 +30,5 @@ XML_ID = "muk_web_theme._assets_primary_variables" SCSS_URL = "/muk_web_theme/static/src/scss/colors.scss" def _uninstall_reset_changes(cr, registry): - self.env['muk_utils.scss_editor'].reset_values(SCSS_URL, XML_ID) \ No newline at end of file + env = api.Environment(cr, SUPERUSER_ID, {}) + env['muk_utils.scss_editor'].reset_values(SCSS_URL, XML_ID) \ No newline at end of file diff --git a/muk_web_theme/__manifest__.py b/muk_web_theme/__manifest__.py index 044a13e..21eb138 100644 --- a/muk_web_theme/__manifest__.py +++ b/muk_web_theme/__manifest__.py @@ -19,7 +19,7 @@ { "name": "MuK Backend Theme", "summary": "Odoo Community Backend Theme", - "version": "12.0.1.2.5", + "version": "12.0.1.2.6", "category": "Themes/Backend", "license": "AGPL-3", "author": "MuK IT",