OdooWiki OCA HUB

HR Expense one2many widget

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

Currently, if user create new expense sheet first, and then click to add expense lines, System will popup a selection window (many2many widget) allowing user to select the existing expenses first, and also to create new expense.

This can be confusing for some user, and might not be suitable for some use case.

With this module, user have option to directly add new lines on expense report (one2many widget).

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Lets users add expense lines directly inside an expense report instead of choosing them from a pop-up selection window. It is turned on or off with a setting in the Expenses configuration.

By default, when you open an expense report and add expense lines, Odoo shows a pop-up window where you first pick existing expenses or create new ones. This module gives you the option to add lines straight into the report instead.

  • A new option, "Use form view when add line for expense report", appears in the Expenses settings screen.
  • When enabled, the expense lines list on the expense report becomes directly editable, so you can type new lines in place without the selection pop-up.
  • The option is controlled by a hidden user group, so it can be switched on or off per company through the settings.

It also adjusts the expense form so that certain fields (the expense account, total amount, remaining amount and employee) are saved even when they are not manually changed, which helps keep the values consistent when lines are created this way.

The module touches the expense report (hr.expense.sheet), the individual expense (hr.expense) and the general settings screen (res.config.settings). No new menus are added; the change is visible inside the existing Expenses configuration and expense report screens.

Depends on

hr_expense
Models and fields (1)
  • res.config.settings · extends an existing modelgroup_hr_expense_widget_o2m (Use form view when add line for expense report)

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

Go to Human Reqsource > Expenses settings, and enable option "Use form view when add line for expense report"

No verified information in OCA: Installation, Usage.

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.