Skip to main content

Beta License: AGPL-3 OCA/server-backend Translate me on Weblate Try me on Runbot

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 Odoo 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

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Therp BV

  • brain-tec AG

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/server-backend project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo12-addon-base-suspend-security 12.0.1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo12-addon-base-suspend-security 12.0.1.0.4
File Interpreter ABI Platform Actions
odoo12_addon_base_suspend_security-12.0.1.0.4-py3-none-any.whl Python 3 none any Details for odoo12_addon_base_suspend_security-12.0.1.0.4-py3-none-any.whl

Release files / odoo12_addon_base_suspend_security-12.0.1.0.4-py3-none-any.whl

Download URL odoo12_addon_base_suspend_security-12.0.1.0.4-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d183dd9e9c6b7a6fb6f15752f6a68fab604944f5226a2a4b7bd14c7ec1175977
BLAKE2b-256 checksum
How to use checksums
1300faad3e1cb85b08f707a284c654a332e68f9b44a792031c9178275fbd0cde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5

Security for odoo12-addon-base-suspend-security 12.0.1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page