From a35e108f32c7a2018729644bf3d972144802608f Mon Sep 17 00:00:00 2001 From: Gines-Pesol Date: Fri, 12 Jan 2024 11:08:34 +0100 Subject: [PATCH] custom_group_change_passw --- custom_group_change_passw/__init__.py | 4 ++ custom_group_change_passw/__manifest__.py | 40 +++++++++++++++++++ custom_group_change_passw/data/res_group.xml | 6 +++ custom_group_change_passw/models/__init__.py | 3 ++ .../views/auth_singup_logout.xml | 16 ++++++++ .../views/res_user_view.xml | 13 ++++++ 6 files changed, 82 insertions(+) create mode 100644 custom_group_change_passw/__init__.py create mode 100644 custom_group_change_passw/__manifest__.py create mode 100644 custom_group_change_passw/data/res_group.xml create mode 100644 custom_group_change_passw/models/__init__.py create mode 100644 custom_group_change_passw/views/auth_singup_logout.xml create mode 100644 custom_group_change_passw/views/res_user_view.xml diff --git a/custom_group_change_passw/__init__.py b/custom_group_change_passw/__init__.py new file mode 100644 index 0000000..0bc6f47 --- /dev/null +++ b/custom_group_change_passw/__init__.py @@ -0,0 +1,4 @@ +############################################################################### +# For copyright and license notices, see __manifest__.py file in root directory +############################################################################### +# from . import models \ No newline at end of file diff --git a/custom_group_change_passw/__manifest__.py b/custom_group_change_passw/__manifest__.py new file mode 100644 index 0000000..707c58c --- /dev/null +++ b/custom_group_change_passw/__manifest__.py @@ -0,0 +1,40 @@ +############################################################################### +# +# Sidoo Soluciones S.L. +# Copyright (C) 2023-Today Sidoo Soluciones S.L. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'Custom Group Not Allow Change Password', + 'summary': '''Module module is designed for authentication with Microsoft Azure. It blocks non-administrative users from changing their + own passwords. Additionally, it disables the option to change passwords from the login reset password feature.''', + 'author': 'Gines Saez, Sidoo', + 'website': 'http://sidoo.es', + 'license': 'AGPL-3', + 'category': 'Customize', + 'version': '16.0.1.0.0', + 'depends': [ + 'base', + 'hr', + 'auth_signup', + ], + 'data': [ + "views/auth_singup_logout.xml", + "data/res_group.xml", + "views/res_user_view.xml", + ], + 'application': True, +} \ No newline at end of file diff --git a/custom_group_change_passw/data/res_group.xml b/custom_group_change_passw/data/res_group.xml new file mode 100644 index 0000000..1aa8026 --- /dev/null +++ b/custom_group_change_passw/data/res_group.xml @@ -0,0 +1,6 @@ + + + + Permitir cambiar contraseƱa + + \ No newline at end of file diff --git a/custom_group_change_passw/models/__init__.py b/custom_group_change_passw/models/__init__.py new file mode 100644 index 0000000..16b0109 --- /dev/null +++ b/custom_group_change_passw/models/__init__.py @@ -0,0 +1,3 @@ +############################################################################### +# For copyright and license notices, see __manifest__.py file in root directory +############################################################################### \ No newline at end of file diff --git a/custom_group_change_passw/views/auth_singup_logout.xml b/custom_group_change_passw/views/auth_singup_logout.xml new file mode 100644 index 0000000..c371d70 --- /dev/null +++ b/custom_group_change_passw/views/auth_singup_logout.xml @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/custom_group_change_passw/views/res_user_view.xml b/custom_group_change_passw/views/res_user_view.xml new file mode 100644 index 0000000..84fe2b3 --- /dev/null +++ b/custom_group_change_passw/views/res_user_view.xml @@ -0,0 +1,13 @@ + + + + users_group_invisible + res.users + + + + custom_group_change_passw.group_custom_not_allow_change_passw + + + +