OdooWiki OCA HUB

Base Technical User

base_technical_user folder_open OCA/server-tools open_in_new
Hidden/Dependency License: AGPL-3

This module extends the functionality of company management. It allows you to bind a technical user on the company in order to use it in batch processes.

The technical user must - be inactive to avoid login - be in the required groups depending of what you need to do

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you designate a dedicated technical user on each company, so automated or batch processes can run under that user instead of a real person.

This module adds a single setting to the company record: a "Technical User" field. You can pick any user belonging to that same company.

Where it appears: - On the company form (Settings > Companies), a new "Configuration" tab contains a "Technical Parameters" group with the Technical User field. This group is only visible to users with the ERP manager access right.

What it changes in Odoo: - It provides a helper that any process can call to run as the company's technical user. If a technical user is set, the process runs with that user's rights and access; if none is set, the process simply continues as the current user. - If the process explicitly requires a technical user and none is configured, Odoo raises an error telling you the technical user is missing for that company. - When the technical user belongs to a different company than the one currently selected, the helper automatically restricts the allowed companies to the current company, so the process stays within the right company context.

It touches the company model (res.company) and the base model (base), and adds no menus, reports or scheduled jobs of its own. It is a building block meant to be used by other modules.

Depends on

base

Required by other modules

Models and fields (2)
  • base · extends an existing model
  • res.company · extends an existing modeluser_tech_id (Technical User)

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

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/server-tools.

terminal Installation and usage

OCA documentation · Odoo 19.0

If you install the module, you will find a tab on the company form allowing to define the technical user.

In your code you can use the following helper that will return you

  • a self with the user tech if configured
  • or a self with sudo user
self_tech = self.sudo_tech()

If you want to raise an error if the tech user in not configured just call it with

self_tech = self.sudo_tech(raise_if_missing)

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.