[MIG] web_environment_ribbon: Migration to 12.0

[MIG] web_environment_ribbon: Migration to 12.0

[FIX] Default value for ribbon.name if not exists

[FIX] Hide ribbon when ribbon.name is false or not existing

[FIX] Remove copyright flag on __init__ files

[REM] Debugging logs

[REM] Make quotes inconsistant again and change sequence of data files in manifest
This commit is contained in:
tarteo
2018-10-02 13:28:48 +02:00
committed by Andreas Perhab
parent f1cd9f50b9
commit 257c03b8e7
10 changed files with 99 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ class WebEnvironmentRibbonBackend(models.AbstractModel):
name_tmpl = self.env['ir.config_parameter'].sudo().get_param(
'ribbon.name')
vals = self._prepare_ribbon_format_vals()
return name_tmpl.format(**vals)
return name_tmpl and name_tmpl.format(**vals) or name_tmpl
@api.model
def get_environment_ribbon(self):