OdooWiki OCA HUB

Expense Work Acceptance

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

This module extend purchase work acceptance and add option to create work acceptance from expense report.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you create Work Acceptances directly from an expense report, track how much of each expense line has been accepted, and optionally block posting the expense journal entries until the Work Acceptance is fully accepted.

This module connects expense reports with Work Acceptances. On an expense report (hr.expense.sheet) you get a "Create WA" button (visible while the report is in draft, submitted or approved and not yet fully accepted) and a "WA" counter button in the button box that opens the related Work Acceptances.

When a Work Acceptance is linked to an expense report, its partner, company, currency and due date are filled in automatically, and one acceptance line is created for each expense line that still has quantity to accept, using the expense description, product, unit of measure, unit price and remaining quantity.

On each expense line you can see two computed quantities: "Accepted" (quantity already accepted through Work Acceptances in the accepted state) and "To Accept" (the remaining quantity). The expense report also shows a "WA Accepted" flag, which becomes true when no line has quantity left to accept.

Two settings are added under the purchase Work Acceptance settings: "Enable WA on Expense Sheet" and, inside it, "WA Accepted before Accounting". When the second option is enabled for a user, posting the journal entries of an expense report is blocked with an error until the Work Acceptance is accepted.

The module touches hr.expense.sheet, hr.expense, work.acceptance, work.acceptance.line and res.config.settings.

Depends on

Models and fields (5)
  • hr.expense · extends an existing modelwa_line_ids (WA Lines), qty_accepted (Accepted Qty.), qty_to_accept (To Accept Qty.)
  • work.acceptance · extends an existing modelsheet_id (Expense Report)
  • hr.expense.sheet · extends an existing modelwa_ids (Work Acceptances), wa_count (WA count), wa_accepted (WA Accepted), wa_line_ids (WA Lines)
  • res.config.settings · extends an existing modelgroup_enable_wa_on_exp (Enable WA on Expense Sheet), group_wa_accepted_before_inv (WA Accepted before Accounting)
  • work.acceptance.line · extends an existing modelexpense_id (Expense Line)

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

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

terminal Installation and usage

OCA documentation · Odoo 16.0

Show Button Create WA on Expense Sheet

  • Go to Purchase > Configuration > Settings
  • Check 'Enable WA on Expense Sheet'

There are 2 ways to create a Work Acceptance

  • Create Expense Report normally
  • After 'Confirm' (Status = 'Submitted'), Click button 'Create WA'
  • Work Acceptance is created using information from Expense Report
  • Click Save

OR

  • Directly create Work Acceptance
  • Select Expense Report
  • Work Acceptance will be filled usinrg information from Expene Report
  • Click Save

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.