Files
Odoo-Modules/nexa_coa_setup
gsinghpal 3c959771ae feat(nexa_coa_setup): pre_init_hook to clear l10n_ca code collisions
Bakes the staging-side one-off collision clearing into the module install
itself so production install will execute the same sweep automatically.

For each of the 29 l10n_ca codes that conflict with Nexa's planned chart:
- If the account has zero postings: suffix code with '.OLD', mark inactive,
  rename to '(l10n_ca LEGACY) <original>'
- If the account has postings (currently 115100 AR control with 240 lines
  and 511100 Inside Purchases with 1 line): leave alone (Nexa renumbered
  to 119100 / 511105 in the XML)

Idempotent — pre_init_hook re-running has no effect (already-suffixed
codes are skipped).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 18:51:25 -04:00
..

Nexa Systems — Chart of Accounts Setup

Custom Odoo 19 module that configures the chart of accounts, taxes, fiscal positions, analytic plans, and partner records for Nexa Systems Inc.

Install

docker exec odoo-nexa-app odoo -c /etc/odoo/odoo.conf -d nexamain \
  -i nexa_coa_setup --no-http --stop-after-init

Update

docker exec odoo-nexa-app odoo -c /etc/odoo/odoo.conf -d nexamain \
  -u nexa_coa_setup --no-http --stop-after-init

Design reference

See docs/superpowers/specs/2026-05-12-nexa-coa-design.md.

Safety

Always take a pg_dump BEFORE running -i or -u. See docs/superpowers/plans/2026-05-12-nexa-coa-setup.md Phase 0.