From cec26a9bbf149d0d21e17dc15b2b54b751845d68 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Wed, 15 Jan 2020 09:00:16 +0000 Subject: [PATCH] publish muk_branding - 11.0 --- muk_branding/__manifest__.py | 4 +-- muk_branding/models/res_config_settings.py | 30 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/muk_branding/__manifest__.py b/muk_branding/__manifest__.py index f36bed6..c51932c 100644 --- a/muk_branding/__manifest__.py +++ b/muk_branding/__manifest__.py @@ -23,7 +23,7 @@ { "name": "MuK Branding", "summary": """Branding and Debranding""", - "version": "11.0.1.0.0", + "version": "11.0.1.0.1", "category": "Extra Tools", "license": "LGPL-3", "website": "http://www.mukit.at", @@ -55,4 +55,4 @@ "post_load": "_patch_system", "pre_init_hook": "_pre_init_debrand_system", "post_init_hook": "_post_init_debrand_system", -} \ No newline at end of file +} diff --git a/muk_branding/models/res_config_settings.py b/muk_branding/models/res_config_settings.py index f679f8f..2c8d7fc 100644 --- a/muk_branding/models/res_config_settings.py +++ b/muk_branding/models/res_config_settings.py @@ -109,26 +109,26 @@ class ResConfigSettings(models.TransientModel): res = super(ResConfigSettings, self).set_values() params = self.env['ir.config_parameter'].sudo() values = params.get_branding_settings_params() - if self.branding_system_name != values.get('muk_branding.system_name'): - self._delete_translations(values.get('muk_branding.system_name')) + if self.branding_system_name != values.get('branding_system_name'): + self._delete_translations(values.get('branding_system_name')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.publisher'): - self._delete_translations(values.get('muk_branding.publisher')) + if self.branding_system_name != values.get('branding_publisher'): + self._delete_translations(values.get('branding_publisher')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.website'): - self._delete_translations(values.get('muk_branding.website')) + if self.branding_system_name != values.get('branding_website'): + self._delete_translations(values.get('branding_website')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.documentation'): - self._delete_translations(values.get('muk_branding.documentation')) + if self.branding_system_name != values.get('branding_documentation'): + self._delete_translations(values.get('branding_documentation')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.support'): - self._delete_translations(values.get('muk_branding.support')) + if self.branding_system_name != values.get('branding_support'): + self._delete_translations(values.get('branding_support')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.store'): - self._delete_translations(values.get('muk_branding.store')) + if self.branding_system_name != values.get('branding_store'): + self._delete_translations(values.get('branding_store')) translation_changed = True - if self.branding_system_name != values.get('muk_branding.share'): - self._delete_translations(values.get('muk_branding.share')) + if self.branding_system_name != values.get('branding_share'): + self._delete_translations(values.get('branding_share')) translation_changed = True if translation_changed: self.env['ir.config_parameter'].set_params({ @@ -152,4 +152,4 @@ class ResConfigSettings(models.TransientModel): self.env['base.update.translations'].sudo().create({ 'lang': lang }).act_update() - self.env['ir.translation'].sudo().clear_caches \ No newline at end of file + self.env['ir.translation'].sudo().clear_caches