[IMP] website_event: hide technical menus
Field show_menu generates three menus Introduction, Location and Register on the page of the event on the website. Generating new menus requires the Technical Features groups so checking this box would produce and error on non-technical users. Moreover these menus are hardcoded, making it less useful and may produce unexpected behaviour (replaces previous menus). Hide the menus to non-technical users and add help message explaining the effect of the field. Fixes #7099
This commit is contained in:
parent
2e4cfafd76
commit
ad00496a41
|
@ -106,7 +106,8 @@ class event(osv.osv):
|
||||||
help="Website communication history",
|
help="Website communication history",
|
||||||
),
|
),
|
||||||
'website_url': fields.function(_website_url, string="Website url", type="char"),
|
'website_url': fields.function(_website_url, string="Website url", type="char"),
|
||||||
'show_menu': fields.function(_get_show_menu, fnct_inv=_set_show_menu, type='boolean', string='Dedicated Menu'),
|
'show_menu': fields.function(_get_show_menu, fnct_inv=_set_show_menu, type='boolean', string='Dedicated Menu',
|
||||||
|
help="Creates menus Introduction, Location and Register on the page of the event on the website."),
|
||||||
'menu_id': fields.many2one('website.menu', 'Event Menu'),
|
'menu_id': fields.many2one('website.menu', 'Event Menu'),
|
||||||
}
|
}
|
||||||
_defaults = {
|
_defaults = {
|
||||||
|
|
|
@ -174,8 +174,8 @@
|
||||||
<label for="tag_ids" class="oe_edit_only"/>
|
<label for="tag_ids" class="oe_edit_only"/>
|
||||||
<field name="tag_ids" widget="many2many_tags"/>
|
<field name="tag_ids" widget="many2many_tags"/>
|
||||||
<div name="event_checkboxes">
|
<div name="event_checkboxes">
|
||||||
<field name="show_menu"/>
|
<field name="show_menu" groups="base.group_no_one"/>
|
||||||
<label for="show_menu"/>
|
<label for="show_menu" groups="base.group_no_one"/>
|
||||||
<field name="show_tracks"/>
|
<field name="show_tracks"/>
|
||||||
<label for="show_tracks"/>
|
<label for="show_tracks"/>
|
||||||
<field name="show_track_proposal"/>
|
<field name="show_track_proposal"/>
|
||||||
|
|
Loading…
Reference in New Issue