OdooWiki OCA HUB

Thai Localization - Tier Department Level

l10n_th_tier_department folder_open OCA/l10n-thailand open_in_new
Localization / Tools License: AGPL-3

This module adds an additional level of hierarchical validation in the department for approvals when there are more than one.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you define, per HR department, an ordered list of approvers (approval levels) used by tier validation, so documents are routed to the right person at each level.

This module adds department-based approval levels on top of the tier validation system. On each department form you get a new "Approval Level" section where you can list approvers in order, each with a description and a sequence that determines the level number.

  • The level number is calculated automatically from the order of the lines, so the first line is level 1, the second is level 2, and so on.
  • Each level must have an approver (a user); the company is filled in automatically and is only shown when multi-company is enabled.
  • A separate "Tier Level" screen (list and form) lets you view and manage these approval levels, with a dedicated access group "Manage Approval Levels" for creating, editing and deleting them; ordinary users can only read them.
  • The module also adds an "Allow Restart Validation" group. Only users in that group see the restart validation button on tier validation documents, and clicking it asks for confirmation because the action cannot be undone. System administrators automatically receive both groups.

It extends the HR department model (hr.department) and introduces a new tier.level model, and it relies on the tier validation formula module to pick the reviewer for a given level.

Required by other modules

Models and fields (2)
  • tier.level · new modelname (Description), level, user_id (Approver), sequence, company_id, department_id
  • hr.department · extends an existing modeltier_level_ids (Approval Level)

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

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/l10n-thailand.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, call the find_reviewer_level function on the hr.department object, and provide the level attribute as an argument.

This function retrieves reviewers from the specified department and returns a user.

For example, Department AA has 3 Approvers:

  • User A
  • User B
  • User C

and you need to find the reviewer at level 1, you can use the following code:

rec.employee_id.department_id.find_reviewer_level(level=1)

The result will be User A.

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.