From 215343379cf8cf21f62cef6974b9e6e06586ca84 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Tue, 30 Jan 2024 18:44:58 +0100 Subject: [PATCH] [IMP] website: add helper next to visibility field when set to group Commit [1] introduced a way to "hide" an ir.ui.view through a new visibility field. That field has multiple possible values to restrict the access. One of those is "Restricted Groups", but when selected it's really hard to figure what to do next because nothing happens on screen: there is no "groups" field where to add the groups. Those groups should actually be added a bit below, in the groups_id field which is "hidden" inside the "Access Rights" second tab. This is because the groups_id field already existed (in base module) before introducing the website visibility feature which just relied on that field when set to "Restricted Groups". Note that another possible value for visibility is "Password", and in this case a password field appear below the visibility field as one would expect. [1]: https://github.com/odoo/odoo/commit/e239934abe456257c9dc285d1ad9829c0353900c closes odoo/odoo#151602 Signed-off-by: Quentin Smetz (qsm) --- addons/website/i18n/website.pot | 5 +++++ addons/website/views/website_pages_views.xml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/addons/website/i18n/website.pot b/addons/website/i18n/website.pot index 4e93962a2c2..e130fe86a86 100644 --- a/addons/website/i18n/website.pot +++ b/addons/website/i18n/website.pot @@ -1662,6 +1662,11 @@ msgstr "" msgid "Add a new field at the end" msgstr "" +#. module: website +#: model_terms:ir.ui.view,arch_db:website.view_view_form_extend +msgid "Add groups in the \"Access Rights\" tab below." +msgstr "" + #. module: website #. odoo-python #: code:addons/website/models/res_lang.py:0 diff --git a/addons/website/views/website_pages_views.xml b/addons/website/views/website_pages_views.xml index 5dfc91b049d..9957e36201c 100644 --- a/addons/website/views/website_pages_views.xml +++ b/addons/website/views/website_pages_views.xml @@ -191,6 +191,10 @@ + +