OdooWiki OCA HUB

HR Expense Analytic Distribution

hr_expense_analytic_distribution folder_open OCA/hr-expense open_in_new
Expense Management License: AGPL-3

The Employee can set distribution key on an Expense report to split all the expense lines in the by several projects.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets employees split an expense report across several analytic accounts by setting a percentage for each. When the report is posted, each expense line is divided into separate accounting entries per analytic account.

On an expense report (the hr.expense.sheet form), a new "Distribution" tab appears next to the other information pages. There you can add one or more distribution lines, each with an Analytic Account and a Percentage.

  • The percentages on a report must add up to exactly 100; otherwise Odoo refuses to save and shows the message "Sorry, Percentage should be equal to 100."
  • When the accounting entries for the expenses are generated, each expense line is split according to those percentages, and each resulting line is tagged with the matching analytic account. The last line absorbs any rounding difference so the total stays correct.
  • The split only applies to expense reports that have at least one distribution line; reports without distribution lines are posted as before.

This module touches the expense report (hr.expense.sheet), the individual expense (hr.expense) and the analytic account (account.analytic.account). It adds a new helper model, hr.expense.analytic.distribution, to store the percentage lines, and gives all internal users full access to it.

Depends on

hr_expense
Models and fields (3)
  • hr.expense · extends an existing model
  • hr.expense.sheet · extends an existing modelexpense_distribution_ids (Distribution Lines)
  • hr.expense.analytic.distribution · new modelexpense_id (Expense), percentage (Percentage), analytic_account_id (Analytic Account)

Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0

On the Expense Report, "Distribution" tab, enter a line for each allocation, with:

  • Analytic Account (required)
  • Percentage (required)

When used, the distribution percentage total must be 100.

No verified information in OCA: Installation, Configuration.

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.