metatroncubeswdev 657792b268
Some checks failed
CI / Brand-leak check (push) Has been cancelled
CI / flake8 / pylint-odoo / manifest completeness (push) Has been cancelled
CI / Install all modules with --test-enable (push) Has been cancelled
Add member application fields and the six real TNCSC membership plans
community_membership:
- Tiers get a fixed-term period (term_years), minimum age, a
  proof-document flag, a family-member flag and a signup description.
- Members get first/last name (composing the contact name), month and
  year of birth with computed age, board approval state with
  approve/reject buttons, terms acceptance, a proof-of-eligibility upload
  and an inline family members list. Birth date and proof document are
  restricted to Membership Managers.
- Constraints: plausible birth year; a tier's minimum age is enforced
  when the birth year is known.
- Fix pre-existing tests that collided with deployment-seeded tier codes
  and member ID format.

tncsc_deployment:
- Five Yes/No eligibility questions from the tncsc.com registration form
  (manager-only), shown in an Eligibility section of the member form.
- Tiers now match tncsc.com/membership-registration: Annual/Family $30,
  Long-Term (10 yr) $250, Life $500, Senior Annual (65+) $15, Senior Life
  (60+) $250, Student Annual $10 (CAD).
- 19.0.1.1.0 post-migrate rewrites existing tiers (noupdate data) and
  archives the unused Individual tier.

scripts/migrate_wp_members.py maps WordPress levels to the new LONG and
SENLIFE tiers. .mcp.json (holds credentials) is now gitignored.

Verified on the local Docker stack: -u on tncsc_site ran the migration
cleanly, and a fresh install with --test-enable passed 32/32 tests for
community_membership and tncsc_deployment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 10:46:31 -04:00

84 lines
3.1 KiB
Python

{
'name': 'TNCSC Deployment',
'version': '19.0.1.1.0',
'category': 'Hidden',
'summary': 'Tamil Nadu Cultural Society of Canada - client configuration for the Community OS suite',
'description': """
TNCSC Deployment
==================
Deployment layer for the Tamil Nadu Cultural Society of Canada (TNCSC).
This module contains DATA ONLY - no models, no business logic. It seeds:
* Branding (Community OS Theme Base settings)
* Membership tiers and prices
* Chart of accounts and journals for a Canadian non-profit
* Bilingual (EN/Tamil) email template overrides
* Website pages
* User groups and access rules
All client-specific values (names, prices, colours, account codes, email
copy) live only in this module. It is exempt from the brand-leak CI check
that applies to the community_* product modules.
""",
'author': 'Metatroncube Software Solutions LLP',
'website': 'https://www.metatroncube.com',
'license': 'LGPL-3',
'depends': [
'community_theme_base',
'community_membership',
'event_qr_ticketing',
'community_school',
'community_classifieds',
'community_benefits',
'community_interac',
'community_portal',
'l10n_ca',
],
'data': [
'security/tncsc_roles.xml',
'data/res_company_data.xml',
'data/theme_data.xml',
'data/membership_data.xml',
'data/mail_template_overrides.xml',
'data/events_data.xml',
'data/ir_cron.xml',
'views/res_partner_views.xml',
'views/website_pages.xml',
'views/website_header_overrides.xml',
'views/browser_branding.xml',
'views/event_kanban_views.xml',
'views/community_dashboard_views.xml',
'views/login_templates.xml',
],
'demo': [],
'assets': {
'web._assets_primary_variables': [
'tncsc_deployment/static/src/scss/primary_variables.scss',
],
'web.assets_frontend': [
'tncsc_deployment/static/src/js/favicon.js',
'tncsc_deployment/static/src/scss/login_theme.scss',
'tncsc_deployment/static/src/scss/website_navigation.scss',
],
'web.assets_backend': [
'tncsc_deployment/static/src/js/favicon.js',
'tncsc_deployment/static/src/scss/tncsc_backend_theme.scss',
'tncsc_deployment/static/src/scss/event_kanban.scss',
'tncsc_deployment/static/src/scss/community_dashboard.scss',
'tncsc_deployment/static/src/scss/login_theme.scss',
'tncsc_deployment/static/src/js/event_kanban_renderer.js',
'tncsc_deployment/static/src/js/community_dashboard.js',
'tncsc_deployment/static/src/js/global_sidebar.js',
'tncsc_deployment/static/src/js/browser_branding.js',
'tncsc_deployment/static/src/xml/kanban_empty_column.xml',
'tncsc_deployment/static/src/xml/community_dashboard.xml',
'tncsc_deployment/static/src/xml/global_sidebar.xml',
],
},
'application': False,
'installable': True,
'post_init_hook': 'post_init_hook',
}