No description
| __pycache__ | ||
| controllers | ||
| models | ||
| sample_data | ||
| security | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| CHANGELOG_TODAY.md | ||
| clean_hunt_data.py | ||
| COMPLETE_SETUP_GUIDE.md | ||
| DATA_IMPORT.md | ||
| DEPLOYMENT.md | ||
| README.md | ||
Website Precinct Finder
Version: 1.0
Odoo Version: 19.0 (Community Edition)
License: LGPL-3
Overview
The Website Precinct Finder is a local Odoo module designed to help voters locate their election precinct and polling place. It maps user addresses to specific precincts using a locally stored database of street segments and address ranges.
This module works completely offline relative to external map APIs, ensuring privacy and speed by hosting the data directly within your Odoo instance.
Features
- Public Lookup Page: A built-in, mobile-responsive webpage available at
/precinct-finderwhere users can enter their address details. - Backend Data Management: Easy-to-use interfaces for Election Administrators to manage Precincts and Address Maps.
- Search & Filtering: Advanced search views in the Odoo backend to quickly locate and update address ranges.
- JSON API: Exposes a
/voter/lookupendpoint for custom integrations if needed.
Installation & Update Instructions (Odoo 19 CE)
If this module is already installed and you have pulled the latest code changes (such as the new frontend page), follow these steps to update it in Odoo 19 Community Edition:
1. Enable Developer Mode
- Log in to your Odoo instance as an Administrator.
- Go to Settings.
- Scroll to the bottom of the page.
- Click Activate the developer mode.
2. Update the App List
- Go to the Apps main menu.
- In the top menu bar, click Update Apps List.
- Click Update in the confirmation dialog.
- Note: This ensures Odoo sees the newly added files and XML views.
3. Upgrade the Module
- In the Apps search bar, search for
Website Precinct Finder.- Tip: Remove the default "Apps" filter if you don't see it immediately.
- Click the three dots (⋮) on the module card or click into the module details.
- Click the Upgrade button.
Usage
Frontend (Public User)
- Navigate to
http://your-odoo-site.com/precinct-finder. - Enter the House Number, Street Name, and Zip Code.
- Click Search to see the assigned Precinct and Polling Location.
Backend (Administrator)
- Go to the Election app in the main dashboard.
- Precincts: Define the names and physical addresses of polling places.
- Address Mappings: Define ranges of addresses (e.g., "100-200 Main St, Even side") and link them to a Precinct.
- Use the search bar to filter by Zip Code or Precinct to audit your data.