Skip to content

Commit

Permalink
Updated membership_accessibility modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteMeAsap committed Nov 21, 2024
1 parent d483f8d commit 2265e61
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 14 deletions.
2 changes: 1 addition & 1 deletion membership_accessibility/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions membership_accessibility/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
20 changes: 9 additions & 11 deletions membership_accessibility/views/views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@
<field name="date_cancel" optional="hide"/>
</tree>
</field>
<field name="section_membership_ids" nolabel="1" colspan="4" readonly="1">
<tree>
<field name="section_id"/>
<field name="start_date"/>
</tree>
</field>
<field name="committee_membership_ids" nolabel="1" colspan="4" readonly="1">
<tree editable="top">
<field name="committee_id"/>
</tree>
</field>
<group>
<field name="membership_group_member_ids" string="Groups" colspan="4" readonly="1">
<tree editable="bottom">
<field name="group_id"/>
<field name="type"/>
<field name="wants_to_collaborate"/>
</tree>
</field>
</group>
</page>
<page name="subscriptions" string="Subscriptions" attrs="{'invisible': [('subscription_ids', '=', False)]}">
<field name="subscription_ids" widget="one2many">
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -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"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_users_view_form_simple_modif" model="ir.ui.view">
<field name="name">res.users.preferences.form.simplified.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="membership_accessibility.res_users_view_form_simple_modif"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='membership_group_member_ids']//tree/field[@name='group_id']" position="before">
<field name="on_mailing_list" />
</xpath>
</field>
</record>

</odoo>
1 change: 1 addition & 0 deletions package.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2265e61

Please sign in to comment.