A comprehensive Odoo module for tracking legal compliance requirements across tax, HR, safety, and other regulatory areas.
- 📋 Rule Management: Create and categorize compliance rules with priorities.
- 🔄 Recurring Checks: Schedule automatic compliance checks (daily/weekly/monthly).
- 📂 Document Proofs: Attach supporting documents for audits.
- 🔔 Alerts & Notifications: Get automatic reminders for upcoming checks.
- 📊 Dashboard: Visual overview of compliance status.
- 📈 Reporting: Track compliance history and results.
legal_compliance/
├── __init__.py
├── __manifest__.py
├── README.md
│
├── controllers/
│ ├── __init__.py
│ └── controllers.py # Web controllers for dashboards/API
│
├── data/
│ └── compliance_data.xml # Default data, email templates, sequences
│
├── demo/
│ └── demo.xml # Demonstration data
│
├── models/
│ ├── __init__.py
│ ├── compliance_category.py
│ ├── compliance_rule.py
│ ├── compliance_check.py
│ ├── compliance_document.py
│ └── res_config_settings.py # Configuration settings
│
├── security/
│ ├── ir.model.access.csv # Access rights
│ └── security_rules.xml # User groups
│
├── static/
│ ├── description/
│ │ └── icon.png # Module icon
│ └── src/
│ ├── css/
│ │ └── compliance.css
│ └── js/
│ └── compliance.js
│
└── views/
├── compliance_alert_views.xml
├── compliance_category_views.xml
├── compliance_check_views.xml
├── compliance_document_views.xml
├── compliance_rule_views.xml
├── menu_views.xml
├── res_config_settings_views.xml
└── templates.xml # QWeb templates
- Clone or copy the module to your Odoo addons directory:
git clone https://github.com/manziosee/legal_compliance.git
- Install dependencies:
pip install -r requirements.txt
- Install the module via:
- Odoo Apps interface, or
odoo-bin -i legal_compliance
- Navigate to Settings → Compliance → Configuration.
- Set default parameters:
- Alert days before due date.
- Compliance manager.
- Create compliance categories (e.g., Tax, HR, Safety).
- Navigate to Compliance → Rules.
- Create new rules with fields like:
- Category.
- Department.
- Priority level.
- Recurrence schedule.
- Scheduled checks appear in the dashboard.
- Manual checks can be initiated from rules.
- Record results (Compliant/Non-Compliant).
- Upload supporting documents.
- Attach PDFs, images, or other files.
- Set expiry dates for documents.
- Track document validity.
-
Compliance Category (
compliance.category
)- Classification of rules (Tax, HR, Safety).
- Color coding and sequencing.
-
Compliance Rule (
compliance.rule
)- Core requirements with scheduling.
- State management (Draft/Active/Archived).
- Automatic next check date calculation.
-
Compliance Check (
compliance.check
)- Records of individual verifications.
- Result tracking with notes.
- Document attachments.
-
Compliance Document (
compliance.document
)- Evidence storage.
- Expiry date tracking.
- Integrated with Odoo attachments.
- Recurring Checks: Cron job checks for due dates daily.
- Alerts: Email templates with dynamic content.
- Dashboard: Custom JS widget with RPC calls.
- Document Handling: Integrated with Odoo's attachment system.
- Odoo Community Edition 15.0+
- Python 3.6+
- Required Odoo modules:
base
mail
calendar
- Fork the repository.
- Create your feature branch:
git checkout -b feature/my-feature
- Commit your changes:
git commit -m "Add my feature"
- Push to the branch:
git push origin feature/my-feature
- Submit a pull request.
For issues or feature requests, contact:
- Author: Manzi Osee
- Company: SIC Rwanda
- Website: https://www.sicrwanda.com
This module is licensed under the LGPL-3 license.
Thank you for using the Legal Compliance Management Module! 🚀