From e1607d8ba2de5d02b686950654a0dfb882f23d5e Mon Sep 17 00:00:00 2001 From: Anjeel Haria Date: Tue, 23 Jul 2024 17:53:49 +0530 Subject: [PATCH] Add membership_accessibility_website_project_role_members module and other project updates Fixes Fixes --- .../__init__.py | 2 +- .../__manifest__.py | 6 ++---- .../models/__init__.py | 3 +++ .../models/res_users.py | 13 +++++++++++++ package.txt | 1 + repos.yaml | 2 +- 6 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 membership_accessibility_website_project_role_members/models/__init__.py create mode 100644 membership_accessibility_website_project_role_members/models/res_users.py diff --git a/membership_accessibility_website_project_role_members/__init__.py b/membership_accessibility_website_project_role_members/__init__.py index 8b13789..0650744 100644 --- a/membership_accessibility_website_project_role_members/__init__.py +++ b/membership_accessibility_website_project_role_members/__init__.py @@ -1 +1 @@ - +from . import models diff --git a/membership_accessibility_website_project_role_members/__manifest__.py b/membership_accessibility_website_project_role_members/__manifest__.py index 3910a20..ff6df8a 100644 --- a/membership_accessibility_website_project_role_members/__manifest__.py +++ b/membership_accessibility_website_project_role_members/__manifest__.py @@ -11,9 +11,7 @@ "license": "AGPL-3", "application": False, "installable": True, - "depends": [ - "membership_accessibility", - "website_project_role_members" - ], + "auto_install": True, + "depends": ["membership_accessibility", "website_project_role_members"], "data": ["views/views.xml"], } diff --git a/membership_accessibility_website_project_role_members/models/__init__.py b/membership_accessibility_website_project_role_members/models/__init__.py new file mode 100644 index 0000000..c39e40a --- /dev/null +++ b/membership_accessibility_website_project_role_members/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import res_users diff --git a/membership_accessibility_website_project_role_members/models/res_users.py b/membership_accessibility_website_project_role_members/models/res_users.py new file mode 100644 index 0000000..49dd61b --- /dev/null +++ b/membership_accessibility_website_project_role_members/models/res_users.py @@ -0,0 +1,13 @@ +from odoo import models + + +class ResUsers(models.Model): + _inherit = "res.users" + + @property + def SELF_READABLE_FIELDS(self): + return super().SELF_READABLE_FIELDS + [ + "is_anonymous", + "is_published", + "website_description", + ] diff --git a/package.txt b/package.txt index fca67a2..b5292a7 100644 --- a/package.txt +++ b/package.txt @@ -136,6 +136,7 @@ l10n_nl_hr_recruitment l10n_nl_rgs_usability mass_mailing_force_dedicated_server membership_accessibility +membership_accessibility_website_project_role_members multi_company_disable oca/account_asset_management oca/account_banking_mandate diff --git a/repos.yaml b/repos.yaml index 408bdab..09ea00e 100644 --- a/repos.yaml +++ b/repos.yaml @@ -15,7 +15,7 @@ onestein: git@github.com:onesteinbv/addons-generic.git merges: - remote: onestein - ref: 03092d3b9fe52512d9ebafa5f63589d09a12f588 + ref: 84d9b37c6ded9a73688765eb02017f402ea1eebf # oca ./oca: