-
Download and Install Odoo:
- Download Odoo from the official website.
- Extract and configure Odoo in VS Code for development.
-
Configure PostgreSQL Database:
- Install PostgreSQL and create a database user for Odoo.
- Update your
odoo.conffile with the correct database connection parameters. - If you face connection issues, ensure PostgreSQL is running and the user/password are correct.
-
Add the Module:
- Place the
student_managementfolder inside your Odooaddonsdirectory (or keep it inserver/addonsif using this repo structure).
- Place the
-
Update Odoo Apps List:
- Log in to your Odoo backend as admin.
- Go to Apps > Update Apps List > Click 'Update'.
-
Upgrade the Module:
- Made changes and upgraded the module
- Go to the "Student Management" menu in Odoo.
- Add students and courses using the provided forms.
- Use the "Show Enrolled Courses" button on a student form to view their enrollments.
- Test course and student listings, and try enrolling students in courses.
-
PostgreSQL Database Connection:
- Problem: Difficulty connecting Odoo to PostgreSQL.
- Solution: Ensured PostgreSQL was running, user credentials were correct, and
odoo.confwas properly configured.
-
View/Action Errors:
- Problem: Odoo errors about missing tree views or view types not defined.
- Solution: Ensured all actions referenced valid view types (
list,form) and that all required views were defined in XML.
-
Button Action TypeError:
- Problem: TypeError when clicking the "Show Enrolled Courses" button (wrong method signature).
- Tried Solution: Updated the method to accept
*args, **kwargsstill it's not working as an Odoo button action.
-
Module Icon Not Showing:
- Problem: The module icon was not visible in the Apps list.
- Solution: Added the
iconkey to the__manifest__.py.
student_management/
├── Students
├── Courses