OdooWiki OCA HUB

HR Expense Analytic Require

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

This module allows you to make the analytic account on an expense a required field.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Makes the analytic account mandatory on employee expenses and lets you set a default analytic account for expenses at company level, so every expense is always linked to an analytic account.

This module changes how employee expenses are recorded in Odoo. On the expense form, the analytic account field becomes mandatory: users can no longer save an expense without choosing an analytic account.

To make this easier, a default analytic account for expenses can be configured per company. It is available in the company settings form and in the Expenses section of the general settings, where a manager can pick the default analytic account. A preconfigured "Main Analytic Account" is also created and set as the default for the main company when the module is installed.

When a user creates a new expense, the analytic account is automatically filled with the company's default analytic account, but it remains editable. The module touches the employee expense (hr.expense), company (res.company) and settings (res.config.settings) screens. It does not add new menus; it only adds fields and a required rule to existing expense and configuration screens.

Depends on

hr_expense
Models and fields (3)
  • hr.expense · extends an existing modelanalytic_account_id
  • res.company · extends an existing modeldefault_expense_analytic_id (Default Analytic Account for Expenses)
  • res.config.settings · extends an existing modelexpense_analytic_id (Default Analytic Account for Expenses)

Text generated by AI (DeepSeek) from reading the Odoo 12.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.

terminal Installation and usage

OCA documentation · Odoo 12.0
  • Go to Expenses > Configuration > Settings
  • Activate the analytic accounting
  • Set a default analytic account
  • Go to Expenses
  • Create or open an expense. The analytic account is required.

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.