summaryrefslogtreecommitdiff
path: root/addons/website_event_track/controllers
diff options
context:
space:
mode:
authorPierre Paridans <app@odoo.com>2020-08-26 08:52:09 +0000
committerPierre Paridans <app@odoo.com>2020-08-26 08:52:09 +0000
commit5bcfe45fd917dd2fabb2fcca93bb409ec733b608 (patch)
treede2a078798e1e7e2454719b3b2124d24b0dc0552 /addons/website_event_track/controllers
parent9fc27e8232ae1f0d697fa1435a2902181661a24d (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/controllers')
-rw-r--r--addons/website_event_track/controllers/webmanifest.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/website_event_track/controllers/webmanifest.py b/addons/website_event_track/controllers/webmanifest.py
index 424f2a328f0..9f4967ed70d 100644
--- a/addons/website_event_track/controllers/webmanifest.py
+++ b/addons/website_event_track/controllers/webmanifest.py
@@ -20,12 +20,11 @@ class TrackManifest(http.Controller):
Using this metadata, user agents can provide developers with means to create user
experiences that are more comparable to that of a native application.
"""
- company = request.env.company
website = request.website
manifest = {
- 'name': _('%s Online Events') % company.name,
- 'short_name': company.name,
- 'description': _('%s Online Events') % company.name,
+ 'name': website.events_app_name,
+ 'short_name': website.events_app_name,
+ 'description': _('%s Online Events Application') % website.company_id.name,
'scope': url_for('/event'),
'start_url': url_for('/event'),
'display': 'standalone',