Files
Odoo-18.0-20251222/base_technical_user/readme/USAGE.md
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

19 lines
434 B
Markdown
Executable File

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
``` python
self_tech = self.sudo_tech()
```
If you want to raise an error if the tech user in not configured just
call it with
``` python
self_tech = self.sudo_tech(raise_if_missing)
```