From 538f9222e16814935984f04539616ff7a4665bab Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Fri, 2 Jun 2023 06:17:57 +0000 Subject: [PATCH] [IMP] website_profile: add karma_profile_min field to view before this commit, currently the field karma_profile_min field in website model is not added in any views and the default value set for the field is 150, as it is not added in any views, the end users have no option to change the value of this field. this field value is used in _check_user_profile_access function and thus the non logged in users or logged in users with karma less than 150(default value) is not able to open any public profiles. after this commit, end users is not able to change the default value set for the field and also default value is changed to 0. closes odoo/odoo#123411 Signed-off-by: Thibault Delavallee (tde) --- addons/website_profile/__manifest__.py | 1 + addons/website_profile/views/website_views.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 addons/website_profile/views/website_views.xml diff --git a/addons/website_profile/__manifest__.py b/addons/website_profile/__manifest__.py index 991b7ff7616..9a824bc5202 100644 --- a/addons/website_profile/__manifest__.py +++ b/addons/website_profile/__manifest__.py @@ -15,6 +15,7 @@ 'data/mail_template_data.xml', 'views/gamification_badge_views.xml', 'views/website_profile.xml', + 'views/website_views.xml', 'security/ir.model.access.csv', ], 'assets': { diff --git a/addons/website_profile/views/website_views.xml b/addons/website_profile/views/website_views.xml new file mode 100644 index 00000000000..6ae78190462 --- /dev/null +++ b/addons/website_profile/views/website_views.xml @@ -0,0 +1,15 @@ + + + + + website.form.view + website + + + + + + + + +