mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user