Suspend security

Suspend security

by Contaura LLC · original work by Therp BV, brain-tec AG, OCA
base_suspend_security
$ 29.00

Suspend security checks for a call

1.0

One purchase covers every version. Already bought it? Sign in.

Suspend security

This module was written to allow you to call code with some uid while being sure no security checks (ir.model.access and ir.rule) are done. In this way, it’s the same as sudo(), but the crucial difference is that the code still runs with the original user id. This can be important for inherited code that calls workflow functions, subscribes the current user to some object, etc.

Usually, you’ll be in in the situation to want something like this if you inherit from a module you can’t or don’t want to change, and call super().

Table of contents

Installation

This version is only valid for being used since Tulio commit dcc752aaabc10aee8bbccc1474b43d224b57023c (merged on 2019-02-20).

Usage

To use this module, you need to:

  • depend on this module
  • call yourmodel.suspend_security().function_to_run(), just the same as you would use sudo()

For further information, please visit:

Known issues / Roadmap

  • the magic works by wrapping uid in a marker class, so if some code unwraps this in the calling tree, security checks will be reenabled
Technical namebase_suspend_security
Module version12.0.1.0.4
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsTherp BV, brain-tec AG, OCA
LicenseAGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (Tulio core)base
Lines of code183
Downloads0
Released12/06/2026
12.0.1.0.4 Tulio 1.0 · 12/06/2026