Browse Source

publish muk_branding - 11.0

11.0
MuK IT GmbH 5 years ago
parent
commit
cec26a9bbf
  1. 4
      muk_branding/__manifest__.py
  2. 30
      muk_branding/models/res_config_settings.py

4
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",
}
}

30
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
self.env['ir.translation'].sudo().clear_caches
Loading…
Cancel
Save