This repository will be used by applicants to collaborate with casai to upload the results of their technical evaluation here, via pull request (PR).
- Make a fork of this repository, with your github user and resolve the technical test problems
- Make a commit with the label "[+] Personal Info"
- Create a database named casai_test_db
- create a table named "employee" with the fields "id", "first_name", "last_name"
- Create a table named "employee_department" with the fields "id", "name", "description"
- Make the necessary changes to assign employees of their respective department.
- Insert 5 employees and 8 departments.
- Assign a department to all employees
-
An employee can only have one department assigned.
-
Add a sql file named "employees.sql" to this repository at root folder. Do not make a database backup, use the sql script that you are used to build the database.
-
Make a commit with the label "[+] employee database schema"
- Create a odoo module named "employee_casai"
- Create a model named "hr_employee" with the fields used for the table "employee" (problem 1).
- Add a computed field named "full_name" and concat "first_name" and "last_name"
- Create a model named "hr_department" with the fields used for table "employee_department" (problem 1).
- Add demo data with the same 5 employees and 8 departmets used on problem 1
- Make the necessary changes to assign employees of their respective department.
- The module need to be installable
- The module needs to be of application type
- The module needs to depend a mail module
- An employee can only have one department assigned.
- Make sure to add the correct security rules to "ir.model.access.csv" file.
- Make a commit to all changes with label "[+] employee module"
- Add a tree and form view to employee module and show all data, incluided full_name.
- Add a menus to make the follow structure.
- Casai
- People & Control
- Employees
- People & Control
- Casai
- Make an action for "Employees" menu and make to open the tree and form views for employees.
- In the employees form view, the department field must restrict the create and the edit options.
- Make a commit to all changes with label "[+] employee views"
- Write a unit test to validate the full_name computation when an employee has been added.
- The unit test may have at least 2 assert instructions with different scenarios.
- Make a commit to all changes with label "[+] Unit tests"
- Make a PR to this repository with title "Odoo Applicant - Your Name"