From 93243c4b03f2b7a9fb7b4afde929c4dd07acf23c Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Mon, 14 Jan 2019 20:30:36 +0000 Subject: [PATCH] publish muk_web_theme - 12.0 --- muk_web_theme/__init__.py | 13 ++++++++++++- muk_web_theme/__manifest__.py | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/muk_web_theme/__init__.py b/muk_web_theme/__init__.py index 3a0a7c9..5ac025d 100644 --- a/muk_web_theme/__init__.py +++ b/muk_web_theme/__init__.py @@ -17,4 +17,15 @@ # ################################################################################### -from . import models \ No newline at end of file +from . import models + +#---------------------------------------------------------- +# Hooks +#---------------------------------------------------------- + + +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 diff --git a/muk_web_theme/__manifest__.py b/muk_web_theme/__manifest__.py index 267fd6e..b305c66 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.3", + "version": "12.0.1.2.4", "category": "Themes/Backend", "license": "AGPL-3", "author": "MuK IT", @@ -55,4 +55,5 @@ "application": False, "installable": True, "auto_install": False, + "uninstall_hook": "_uninstall_reset_changes", } \ No newline at end of file