Hibou Odoo Suite: Human Resources (HR) Modules: HR Expense Recruitment

Repository Versions:

Modules:

Author:

Hibou Corp.

License:

AGPL-3


Purpose

The purpose of this documentation is to outline the use case and processes associated with Hibou's HR Expense Recruitment module for Odoo. The HR Expense Recruitment module allows users to assign jobs to expenses for reporting purposes.

Getting Started

First thing's first, we need to install the module! Navigate to the Apps application and search 'HR Expense Recruitment'. When ready, hit Install.

Odoo CMS - a big picture

Good to Know!

The HR Expense Recruitment module requires both the Expenses (Tracker) and Recruitment (Process) applications. However, if you do not already have these applications installed, Odoo will install them for you during this module's installation!

Processes

To get started, navigate to the Expenses application.

Odoo - Sample 1 for three columns


Assigning a Recruitment to an Expense

Once there, select an existing expense or make a new one by hitting Create.

If an existing expense was selected, hit edit.

Under the Employee field, there is a new Job dropdown menu. Select the appropriate job position from the dropdown menu.

Odoo CMS - a big picture

When finished, hit save.

Expenses on a Recruitment

Navigate to the Recruitment application.

Odoo - Sample 1 for three columns


Once there, navigate to a job's settings by selecting the Settings on that position.


On the form view for the job position, you will notice a new 'Expenses' smart button in the top right corner that dynamically displays all expenses associated with recruiting for the position.


Clicking on the Expenses smart button will take you to a list view of all expenses associated with this job position.


Technical

The HR Expense Recruitment module adds new fields and view elements to expenses and recruitments to create a relationship that enables users to assign a recruitment to expenses for reporting purposes. 

The `hr.job` model gets three new fields :

  • `company_currency` Many2one field for Currency that is related to the Job's company's currency_id

  • `expense_total_amount` computed Float field that is to Expenses Total for that job

  • `expense_ids` One2many field for all expenses related to that job

The HR Job Form View gets a new Expenses smart button that displays the computed `expense_total_amount` field.

The `hr.expense` model receives a new `job_id` field to associate the expense with a job. This field is then added to the Expense form view as well as the Expense filter view so it can be used when filtering expenses.