diff options
| author | Pierre Paridans <app@odoo.com> | 2020-08-26 08:52:09 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2020-08-26 08:52:09 +0000 |
| commit | 5bcfe45fd917dd2fabb2fcca93bb409ec733b608 (patch) | |
| tree | de2a078798e1e7e2454719b3b2124d24b0dc0552 /addons/website_event_track/models/res_config_settings.py | |
| parent | 9fc27e8232ae1f0d697fa1435a2902181661a24d (diff) | |
[IMP] website_event_track: allow customization of the PWA's name
This commit adds a website-specific and customizable app name for the
Events' Progressive Web Application, configurable through the website's
settings.
Defaults to '<website_name> Events'.
closes odoo/odoo#56542
X-original-commit: 423076ddf1da0fc61d9a18dc19bbbbf900e3dad6
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/website_event_track/models/res_config_settings.py')
| -rw-r--r-- | addons/website_event_track/models/res_config_settings.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/website_event_track/models/res_config_settings.py b/addons/website_event_track/models/res_config_settings.py new file mode 100644 index 00000000000..8d87e90d9ff --- /dev/null +++ b/addons/website_event_track/models/res_config_settings.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + + events_app_name = fields.Char('Events App Name', related='website_id.events_app_name', readonly=False) |
