l10n_fr_department
Populate Odoo with mainland French departments and link them to partners via automatic zipcode-based assignment.
Key Features
- res.country.department: Defines departments under country states with unique codes, computed display names, and stored country links.
- res.country.department: Loads all mainland French departments and exposes list, form, and search views plus a menu for managing them.
- res.country.state: Adds a one-to-many relation to navigate the departments belonging to each state.
- res.partner: Computes and stores a country_department_id from French and overseas zip codes, handling special postcode mappings.
- res.partner: Adds department grouping and a column in partner lists and shows the computed department on partner forms for administrators.
- installation: Post-install recomputes partner departments to backfill values after department data is loaded.