OdooWiki OCA HUB

Expense Employee Analytic Default

hr_expense_employee_analytic_default folder_open OCA/hr-expense open_in_new
Human Resources License: AGPL-3

This module allows to create Analytic Distribution Models for employees to be applied to expenses.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets expense analytic distributions be chosen based on the employee's own contact/address, so employee-specific analytic distribution models apply automatically to their expenses.

When an expense is created or its employee changes, Odoo recalculates the analytic distribution for that expense. This module makes that recalculation happen in the context of the expense's employee, so the analytic distribution rules are matched against the employee's contact/address instead of the usual partner.

  • On hr.expense, the analytic distribution is recomputed whenever the employee changes, and the employee is passed along during that computation.
  • On account.analytic.distribution.model, the rule lookup replaces the partner with the employee's address when an employee is present in the context, so employee-linked analytic distribution models are found.

In practice, this means you can set up analytic distribution models tied to an employee's contact and have them applied automatically to that employee's expenses, without manually selecting the analytic account each time. It only affects the automatic selection of analytic distribution; it does not add menus, reports, emails or scheduled actions, and it does not change expense amounts or approval rules.

Depends on

hr_expense
Models and fields (2)
  • hr.expense · extends an existing model
  • account.analytic.distribution.model · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/hr-expense.

terminal Installation and usage

OCA documentation · Odoo 17.0

To configure this module, you need to:

  • Enable the “Analytic Accounting” permission on the user
  • Go to an employee (or create a new one) and set a work address
  • Go to Invocing \> Configuration \> Analytic Accounting |> Analytic Distribution Models and create a record that has as partner the employee's work address.

To use this module, you need to:

  • Go to Expenses and create a new one.
  • The analytical distribution will be set according to the analytic distribution model.
  • When changing the employee, the analytical distribution will be updated.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.