TNCSC_Odoo/addons/tncsc_deployment/data/res_company_data.xml
metatroncubeswdev 24be6360e2 feat(tncsc_deployment): migrate real tncsc.com content into the website pages
Replaces the Phase 7 "content to be finalized" placeholder pages with
TNCSC's actual site content (captured 2026-08-20), verified against a
live Odoo container on a dedicated fresh database (tncsc_site):

- Home, About, About/Tamil Nadu, About/Board of Directors (12 real
  members), Membership hub, Membership Benefits, Tamil Class, and
  Contact pages, with nav restructured to match tncsc.com's real
  structure (About and Membership as dropdowns).
- Real images downloaded from tncsc.com and self-hosted under
  static/src/img/ instead of hotlinking the WordPress site.
- Home's "Upcoming Events" and the membership pricing tables are wired
  to live event.event / community.membership.tier records instead of
  being static copies; Tamil Class links to the real /school/register
  flow. One real event seeded (Summer Picnic 2026).
- Deliberately not reproduced: tncsc.com's own Sponsors page and Contact
  phone number are unmigrated WordPress theme demo placeholders on the
  live site itself (generic client-01..09 logos, a non-Canadian demo
  number) - confirmed by inspection, not assumed. Contact page uses the
  real, verified email and social links instead.
- post_init_hook now also fixes two Odoo website Copy-On-Write gotchas
  that silently prevented the new homepage and nav dropdowns from
  rendering at all (auto-forked per-website duplicates winning over
  this module's records) - see HANDOFF.md for the full explanation.
2026-08-20 12:32:59 -04:00

39 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="base.CAD" model="res.currency">
<field name="active">True</field>
</record>
<!-- country_id/state_id/currency_id are deliberately NOT set here: writing
country_id on a res.company with no chart_template yet auto-schedules
Odoo's own chart-template installer via a precommit hook
(install_l10n_modules), which races with this module's own explicit
try_loading('ca_2023', ...) call in post_init_hook and can leave the
company on the wrong currency. Those three fields are set together
with chart_template_load=True in post_init_hook instead, which
suppresses that auto-trigger so only our explicit load runs. -->
<record id="base.main_company" model="res.company">
<field name="name">Tamil Nadu Cultural Society of Canada</field>
<field name="email">support@tncsc.ca</field>
<field name="website">https://tncsc.com</field>
<field name="logo" type="base64" file="tncsc_deployment/static/src/img/brand/logo.png"/>
</record>
<!-- Public social links, confirmed live on tncsc.com/contact (2026-08-20).
No street address or phone number is set: tncsc.com does not publish
either (its "Contact" page phone number is unmigrated WordPress
theme demo content, not a real TNCSC number) - add both here once
TNCSC provides them. -->
<record id="website.default_website" model="website">
<field name="name">Tamil Nadu Cultural Society of Canada</field>
<field name="social_facebook">https://www.facebook.com/TNCSCCanada/</field>
<field name="social_youtube">https://www.youtube.com/@tamilnaduculturalsocietyof5866</field>
<field name="social_instagram">https://www.instagram.com/tncsc_canada</field>
<!-- website.logo is its own stored field (defaults to Odoo's own
placeholder logo), not a related/computed fallback to
res.company.logo - both need to be set explicitly. -->
<field name="logo" type="base64" file="tncsc_deployment/static/src/img/brand/logo.png"/>
</record>
</odoo>