Skip to main content

odooscan

CI License: MIT prek Complexity: polyscan Conventional Commits

A quality and security scanner for Odoo modules, written in Rust. It parses Python with ruff's parser, JS with oxc, and XML, CSV and the translation catalogs of i18n/ and i18n_extra/ natively. It then builds one index of every model, field, method, XML id, view and access rule across the modules it is given, so rules can check what a single-file linter cannot. For example, it can tell you that a view names a field its model lacks, or that an XML id belongs to a module missing from depends.

uv tool install odooscan    # or: pip install odooscan
oscn check path/to/custom-addons --addons-path ~/repos/odoo/odoo,~/repos/odoo/enterprise

The wheels hold a prebuilt binary for Linux (glibc and musl), macOS and Windows; cargo build --release builds target/release/oscn anywhere else.

The documentation covers the options, configuration, CI, series, baselines, suppression and fixing, with a page per rule. oscn explain OD203 prints a rule's page in the terminal.

Layout

  • crates/odooscan_core/src/project.rs finds modules, parses every file in parallel, and keeps per-file facts.
    • python.rs, xml.rs, csvdata.rs, js.rs and manifest.rs extract those facts and raise the single-file rules, and po.rs reads the translation catalogs of i18n/ and i18n_extra/ and raises the OD8 rules of a single catalog.
  • index.rs merges the facts. It resolves fields through _inherit, _inherits and delegate=True, related comodels, view inheritance, JS module paths and the scripts bundles load, and the dependency scope of each module.
    • bundles.rs fills each asset bundle as Odoo does, in module load order, applying append, prepend, before, after, replace, remove and include.
  • checks.rs holds the cross-file rules.
  • rules.rs is the registry: code, series range, severity and category. docs/rules/ has a page per rule.
  • crates/odooscan is the CLI.

Testing

cargo test runs a snapshot that scans crates/odooscan_core/tests/fixtures/custom, modules written to trigger every rule, against core/ beside it, a stand-in for Odoo core whose auto-install modules pin down which modules count as always installed; accept changes as CONTRIBUTING.md describes. A case that cannot join that scan gets its own root beside custom/ and core/. Each module of cycles/ is scanned alone, by oscn check cycles/<module> --addons-path core in a child process: a cycle the index fails to end overflows the stack and aborts the whole process, which in custom/ would kill the test binary with every test in it, while spawned it fails one test. bootstrap/ holds a module named base, scanned in process with no addons path, because in custom/ it would shadow core/base, which every custom module depends on. The false-positive oracle is Odoo itself: a scan of core must report exactly the findings recorded in tests/oracle/, as CONTRIBUTING.md describes.

Metadata

Release files for odooscan 0.15.0

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

Source distribution (sdist)

Source distribution for odooscan 0.15.0
File Size Uploaded Provenance Actions
odooscan-0.15.0.tar.gz 847.0 kB Without provenance Details for odooscan-0.15.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for odooscan 0.15.0
File Actions
odooscan-0.15.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for odooscan-0.15.0-py3-none-win_amd64.whl
odooscan-0.15.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for odooscan-0.15.0-py3-none-musllinux_1_2_x86_64.whl
odooscan-0.15.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for odooscan-0.15.0-py3-none-musllinux_1_2_aarch64.whl
odooscan-0.15.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for odooscan-0.15.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
odooscan-0.15.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for odooscan-0.15.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
odooscan-0.15.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for odooscan-0.15.0-py3-none-macosx_11_0_arm64.whl
odooscan-0.15.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for odooscan-0.15.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 28.9 MB

Release files / odooscan-0.15.0.tar.gz

Download URL odooscan-0.15.0.tar.gz
Size 847.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0d984e65f541106b9e3b9e3e0c4f72f56399953bf5145f0e9455ea0baca9c57c
BLAKE2b-256 checksum
How to use checksums
c0cc3569c729ef807bfe8b2ec04117d9d1ae77b7528bad88b3846dabfa50fb66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-win_amd64.whl

Download URL odooscan-0.15.0-py3-none-win_amd64.whl
Size 4.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a711c53e0d416ac5a382add8b98d7de0a46ee73a927825e3a0c29c7f16454fd4
BLAKE2b-256 checksum
How to use checksums
00324bd5836cf4c76ec301b71da7e89ea558d1cde6b7666eca45efb22c33ffd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-musllinux_1_2_x86_64.whl

Download URL odooscan-0.15.0-py3-none-musllinux_1_2_x86_64.whl
Size 4.2 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f19fb9bd188c87cbcca0460be1439a665ca4642e642aea94e413f78348ed8123
BLAKE2b-256 checksum
How to use checksums
ad988dd0268276db2b9880c6d24f0263a4e31e9275add09a16faacff09c80028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-musllinux_1_2_aarch64.whl

Download URL odooscan-0.15.0-py3-none-musllinux_1_2_aarch64.whl
Size 3.9 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
83ec812163fe718e5466f7ee731d994145d61a66ab95245ed3b93c469c63c5e1
BLAKE2b-256 checksum
How to use checksums
60fd4a18782a7ab8cdc5175cc99b0e7e788910d862afbc7e141ebf75c34213fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL odooscan-0.15.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5adf474178fd4abdb5e4098943a05a48091105603a49c49fd6801e2b9f98d259
BLAKE2b-256 checksum
How to use checksums
3fe31e4998a1c3fc96316b96f3fbff54e5118bc84563962ee313bc6d901c550c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL odooscan-0.15.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
98c33b1a829d7bf0ba546e10826cbe870968784e2d59eb84b6522431ac1948e4
BLAKE2b-256 checksum
How to use checksums
fe763bd969653b2a9852bb0a199743332572ab826fbf876518e0e26887d2dd45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-macosx_11_0_arm64.whl

Download URL odooscan-0.15.0-py3-none-macosx_11_0_arm64.whl
Size 3.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d2ffeb7a18bbb8ab961bd05f50daecacfcb9221f7e0a1c47c6e271016fe0f324
BLAKE2b-256 checksum
How to use checksums
dd9a2809dfb40e46172069582e3beb7252643d08863e617d04bce2bd006f4809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / odooscan-0.15.0-py3-none-macosx_10_12_x86_64.whl

Download URL odooscan-0.15.0-py3-none-macosx_10_12_x86_64.whl
Size 4.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6abf3136feba3fe86a19e2897dc447255c51d8630a6ef19a95894559aa660c6c
BLAKE2b-256 checksum
How to use checksums
4c6d6b9c602e10919b5298cb3181a3743d121a558dd466bd0956a2ac1932fb5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for odooscan 0.15.0

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