top of page

Expense Request AI & Multi-Level Expense Approval (Part 2): The Right Approvers, in the Right Order

Writer: Bernard Bryan Hayashi
Bernard Bryan Hayashi
19 hours ago
4 min read

Set up your approval flow once, and every expense goes through the right people automatically.


The Full Journey at a Glance

  1. 📸 Snap: upload the receipt, and the expense is created by AI (Part 1).

  2. 📝 Submit: add the expense to a report and submit it.

  3. 🙋 Request: click Request Approval, and the approval lines are generated automatically.

  4. âś… Approve: each approver reviews in order and gets notified when it's their turn.

  5. đź’° Done: after the final approval, the expense report is approved automatically.

No more chasing managers in chat, no lost emails, and every approval is recorded in one place.


Why Multi-Level Approval?

In Part 1, we turned a receipt photo into an expense in seconds. But in most companies an expense can't be paid just because someone submitted it. It usually needs to be checked by the line manager, then maybe the department head, and finally finance.


Doing this through chat messages or emails is slow and easy to lose track of. With Multi-Level Expense Approval, you define the approval flow once in Odoo, and every expense automatically follows it, from the first approver to the last.

The process has two parts:

  1. One-time setup: an admin creates an Approval Type that defines what needs approval and who approves it

  2. Daily use: employees request approval, and approvers approve or refuse, step by step.


Part A — Setting Up the Approval Type (One-Time)


Step 1: Create a new Approval Type

Go to Approval Matrix → Approval Types → New and fill in the basic information:

Field

Description

Name

The name of the approval flow, e.g. Expense Approval

Description

A short explanation of this approval flow

Priority

If several approval types apply to the same document, the one with the lowest number is used first

Apply for Model?

Tick this so the approval is attached to a real Odoo document (in our case, the expense)


Step 2: Define what needs approval (Model Settings)

In the Options tab, tell the system which documents need approval:

Field

Description

Model

The document type that needs approval, e.g. the Expense Report

Domain

The condition a document must meet to require approval, e.g. [("state", "=", "submit")] means only submitted reports need approval

Hide Buttons from Model View?

Hides the document's original buttons until it's approved, so nobody can skip the approval

Approved Action

Python code that runs automatically once the request is fully approved, e.g. approving the expense report

Refused Action

Python code that runs automatically when the request is refused

For example, the Approved Action can be as simple as:

record.action_approve_expense_sheets()

Step 3: Define who approves (Approvers)

Scroll down to the Approvers section and add one line for each approval level:

Field

Description

Title

The name of this approval step, e.g. Line Manager Review, Finance Review

Sequence

The order of the step. Lower numbers are approved first

User

A specific person who must approve this step

Special User

Instead of a fixed person, choose a role: Line Manager, Coach, or Manager of Department. The system finds the right person based on the employee who submits the request

Type of Approval

Required: this approver must approve. Optional: if this approver refuses, the request still moves on to the next approver

Deputy Groups

User groups whose members can be picked as a replacement approver with the Change Approver feature, e.g. when the main approver is on leave

💡 Tip: Use Special User wherever you can. One approval type then works for the whole company: each employee's request goes to their own line manager or department manager, so you don't need a separate flow per department.

Step 4: Click "Configure"

Finally, click the Configure button at the top of the form.


Part B — From Request to Approval (Daily Flow)


Step 5: Employee submits the expense

The employee creates the expense (using the AI from Part 1), adds it to an expense report, and submits it. Because the report now matches the Domain from Step 2, the form shows a Request Approval button.


Step 6: Employee requests approval

When the employee clicks Request Approval, a pop-up appears with everything already filled in:

  • Title: "Request approval for [document name]"

  • Type: the matching approval type, picked automatically

  • Description: a short message with a direct link back to the expense report

  • Priority: Normal, Medium, High, or Very High

When the employee submits, the system:

  1. Creates an approval request with its own reference number and the status Submitted.

  2. Builds the approval lines from the approvers configured in Step 3, in order of sequence. Every Special User is turned into a real person. For example, Line Manager becomes the requester's actual manager.

  3. Sets the first approver to "Waiting for Approval". All other approvers wait in Draft.

  4. Notifies the first approver by email and/or a to-do activity in Odoo.


Step 7: Approvers review, one by one

The current approver opens the request from the notification or from the Approvals menu. They can see the request details, the link to the expense report, and the full list of approvers with each one's status.

Only the approver whose turn it is can act on the request.


If the approver clicks Approve:

  • Their line becomes Approved.

  • The next approver's line becomes Waiting for Approval.

  • This repeats until every approver has approved.

If the approver clicks Refuse (a reason is required):

  • Required approver: the whole request is Refused right away, and the remaining steps are cancelled.

  • Optional approver: the refusal is recorded, but the request still moves on to the next approver


Here's how each approval line moves through its statuses:

Status

Meaning

Draft

Waiting for previous approvers

Waiting for Approval

It's this approver's turn

Approved

This approver has approved

Refused

This approver has refused

Cancel

Skipped because the request was refused earlier


Step 8: Final approval — the expense is approved 🎉

When the last approver approves, the system finishes everything automatically:

  1. The approval request becomes Approved, and the completion date is recorded.

  2. The expense report's banner changes to "This document has been approved!"

  3. The Approved Action from Step 2 runs. In our example, the expense report is approved and ready for payment.


What if it's refused?

If the request is refused, the expense report shows a red banner, "This document has been refused!".

The employee can then fix the expense and click Rework to send it through the approval flow again.

 
 
 

Recent Posts

See All
Integrating EasyParcel with Odoo

Connect Odoo to EasyParcel to fetch live courier rates and create shipments from the website checkout and from sales orders. Benefits Live rates from several couriers (Aramex, J&T, DHL eCommerce, Laza

 
 
 

Comments


Subscribe Form

  • facebook
  • linkedin

©2019 by Excelroot Technology Sdn Bhd.

bottom of page