What problem does it solve?
Ensuring Odoo code is secure, performant, and compliant with best practices requires meticulous manual review, which is time-consuming and prone to human error. This skill automates the code review process, identifying critical issues and suggesting improvements.
Core Features & Use Cases
- Security Audit: Detects SQL injection risks, XSS vulnerabilities, and improper
sudo() usage.
- Performance Analysis: Identifies N+1 queries, inefficient searches, and unnecessary database operations.
- Best Practices & Compliance: Checks for OCA guidelines, proper API usage, error handling, logging, and maintainability.
- Use Case: You've developed a custom
stock_picking module and want to ensure it has no performance bottlenecks and complies with OCA coding guidelines before deployment. This skill can provide a comprehensive review.
Quick Start
Use the odoo-code-reviewer skill to review the attached my_custom_module.py file for security vulnerabilities and performance issues.