Browse Source

publish muk_web_theme - 12.0

pull/35/head
MuK IT GmbH 6 years ago
parent
commit
2643a6e6ba
  1. 4
      muk_web_theme/models/res_config_settings.py

4
muk_web_theme/models/res_config_settings.py

@ -75,8 +75,8 @@ class ResConfigSettings(models.TransientModel):
custom_attachment = self._get_custom_attachment(custom_url)
if custom_attachment.exists():
content = str(base64.b64decode(custom_attachment.datas))
brand = re.match( r'o-brand-odoo\:?\s(.*?);', content)
primary = re.match( r'o-brand-primary\:?\s(.*?);', content)
brand = re.search( r'o-brand-odoo\:?\s(.*?);', content)
primary = re.search( r'o-brand-primary\:?\s(.*?);', content)
return {
'theme_color_brand': brand and brand.group(1) or "#243742",
'theme_color_primary': primary and primary.group(1) or "#5D8DA8",

Loading…
Cancel
Save