From 2265e61be15718dbe4f57dec2830dcdad3f79ec6 Mon Sep 17 00:00:00 2001 From: Anjeel Haria Date: Thu, 21 Nov 2024 15:04:10 +0530 Subject: [PATCH] Updated membership_accessibility modules --- membership_accessibility/__manifest__.py | 2 +- membership_accessibility/models/res_users.py | 3 +-- membership_accessibility/views/views.xml | 20 +++++++++---------- .../__init__.py | 0 .../__manifest__.py | 17 ++++++++++++++++ .../views/views.xml | 14 +++++++++++++ package.txt | 1 + 7 files changed, 43 insertions(+), 14 deletions(-) create mode 100644 membership_accessibility_mass_mailing_membership_group/__init__.py create mode 100644 membership_accessibility_mass_mailing_membership_group/__manifest__.py create mode 100644 membership_accessibility_mass_mailing_membership_group/views/views.xml diff --git a/membership_accessibility/__manifest__.py b/membership_accessibility/__manifest__.py index 01126d00..53940cc8 100644 --- a/membership_accessibility/__manifest__.py +++ b/membership_accessibility/__manifest__.py @@ -22,7 +22,7 @@ "project", "hr_timesheet", "membership_hr_recruitment", - "membership_committee", + "membership_group", ], "data": ["security/membership_accessibility_security.xml", "views/views.xml"], "post_init_hook": "post_init_hook", diff --git a/membership_accessibility/models/res_users.py b/membership_accessibility/models/res_users.py index f97ca0c3..51cf24ed 100644 --- a/membership_accessibility/models/res_users.py +++ b/membership_accessibility/models/res_users.py @@ -18,7 +18,6 @@ def SELF_READABLE_FIELDS(self): "membership_stop", "membership_cancel", "member_lines", - "section_membership_ids", - "committee_membership_ids", + "membership_group_member_ids", "subscription_ids", ] diff --git a/membership_accessibility/views/views.xml b/membership_accessibility/views/views.xml index d05ffa75..6e8f8eb5 100644 --- a/membership_accessibility/views/views.xml +++ b/membership_accessibility/views/views.xml @@ -53,17 +53,15 @@ - - - - - - - - - - - + + + + + + + + + diff --git a/membership_accessibility_mass_mailing_membership_group/__init__.py b/membership_accessibility_mass_mailing_membership_group/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/membership_accessibility_mass_mailing_membership_group/__manifest__.py b/membership_accessibility_mass_mailing_membership_group/__manifest__.py new file mode 100644 index 00000000..0b0995a1 --- /dev/null +++ b/membership_accessibility_mass_mailing_membership_group/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2023 Anjeel Haria +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Membership Accessibility Mass Mailing Membership Group", + "summary": "Adds options for members to see whether they are on the mailing list of membership groups", + "version": "16.0.1.0.0", + "category": "Membership", + "author": "Onestein", + "website": "https://www.onestein.eu", + "license": "AGPL-3", + "application": False, + "installable": True, + "auto_install": True, + "depends": ["membership_accessibility", "mass_mailing_membership_group"], + "data": ["views/views.xml"], +} diff --git a/membership_accessibility_mass_mailing_membership_group/views/views.xml b/membership_accessibility_mass_mailing_membership_group/views/views.xml new file mode 100644 index 00000000..2e26e014 --- /dev/null +++ b/membership_accessibility_mass_mailing_membership_group/views/views.xml @@ -0,0 +1,14 @@ + + + + res.users.preferences.form.simplified.inherit + res.users + + + + + + + + + diff --git a/package.txt b/package.txt index 0ddae04a..b56993a6 100644 --- a/package.txt +++ b/package.txt @@ -145,6 +145,7 @@ l10n_nl_hr_recruitment l10n_nl_rgs_usability mass_mailing_force_dedicated_server membership_accessibility +membership_accessibility_mass_mailing_membership_group membership_accessibility_website_project_role_members multi_company_disable oca/account_asset_management