[IMP] website_event_track: Hide advanced option in debug mode
Part-of: odoo/odoo#82999
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user