[IMP] website_event_track: Hide advanced option in debug mode

Part-of: odoo/odoo#82999
This commit is contained in:
Yannick Tivisse
2022-02-08 14:53:38 +00:00
parent e7fc008d38
commit fc0e092d06
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -2,7 +2,6 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from PIL import Image
import base64
from odoo import api, fields, models
@@ -14,8 +13,18 @@ from odoo.tools.translate import _
class Website(models.Model):
_inherit = "website"
app_icon = fields.Image(string='Website App Icon', compute='_compute_app_icon', store=True, readonly=True, help='This field holds the image used as mobile app icon on the website (PNG format).')
events_app_name = fields.Char(string='Events App Name', compute='_compute_events_app_name', store=True, readonly=False, help="This fields holds the Event's Progressive Web App name.")
app_icon = fields.Image(
string='Website App Icon',
compute='_compute_app_icon',
store=True,
readonly=True,
help='This field holds the image used as mobile app icon on the website (PNG format).')
events_app_name = fields.Char(
string='Events App Name',
compute='_compute_events_app_name',
store=True,
readonly=False,
help="This fields holds the Event's Progressive Web App name.")
@api.depends('name')
def _compute_events_app_name(self):
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]//div[@id='website_settings']" position="inside">
<div class="col-12 col-lg-6 o_setting_box" id="events_app_setting">
<div class="col-12 col-lg-6 o_setting_box" id="events_app_setting" groups="base.group_no_one">
<div class="o_setting_right_pane">
<label for="events_app_name" string="Events PWA"/>
<span class="fa fa-lg fa-globe" title="Values set here are website-specific." groups="website.group_multi_website"/>