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.16.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.16.0
File Size Uploaded Provenance Actions
odooscan-0.16.0.tar.gz 985.3 kB Without provenance Details for odooscan-0.16.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for odooscan 0.16.0
File Actions
odooscan-0.16.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for odooscan-0.16.0-py3-none-win_amd64.whl
odooscan-0.16.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for odooscan-0.16.0-py3-none-musllinux_1_2_x86_64.whl
odooscan-0.16.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for odooscan-0.16.0-py3-none-musllinux_1_2_aarch64.whl
odooscan-0.16.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.16.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
odooscan-0.16.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for odooscan-0.16.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
odooscan-0.16.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for odooscan-0.16.0-py3-none-macosx_11_0_arm64.whl
odooscan-0.16.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for odooscan-0.16.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 30.7 MB

Release files / odooscan-0.16.0.tar.gz

Download URL odooscan-0.16.0.tar.gz
Size 985.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e4988855116bdc3d624f7369b1f8d5fc5056f5ab5a694293edc70cdb127b164
BLAKE2b-256 checksum
How to use checksums
f932ade4dac44018392361390f1fea1ab226eab5b11b6f6865289477903a5092
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-win_amd64.whl

Download URL odooscan-0.16.0-py3-none-win_amd64.whl
Size 4.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d535ca497cd3d20a93901a748844aeaafbad8d930a1b3eeb6d88431828d71f9d
BLAKE2b-256 checksum
How to use checksums
1cdc68f9eae5cd2f85a4912ff33630acbb587934a8997d439eb86b363c6b6035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-musllinux_1_2_x86_64.whl

Download URL odooscan-0.16.0-py3-none-musllinux_1_2_x86_64.whl
Size 4.4 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9ea1b472f1db47b88346aa55a139561a689b8c7ae2e7b4b26d2f1231e2d09639
BLAKE2b-256 checksum
How to use checksums
e68d7972a0ec6c2572fdcc2585af9cdda3ff316f8d034049d9f9c0334cadc973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-musllinux_1_2_aarch64.whl

Download URL odooscan-0.16.0-py3-none-musllinux_1_2_aarch64.whl
Size 4.1 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
70168241789456ad98688b241a30fd17295ad68f21b65821d8b908956dbda0ba
BLAKE2b-256 checksum
How to use checksums
b75044397a856b4df94ad8078acdf7f9721ba8c3cece2ec6795a76bb4f7669e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL odooscan-0.16.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4c7124d489dc8f4efb1eb0b9ab059d46e1a977cdcc42a6975942906455220fb1
BLAKE2b-256 checksum
How to use checksums
c631d3a0503d49d356f6d999367770260970eeccff8ef4a26f5b44b9ef160e7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL odooscan-0.16.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
bc737d65d71bf63ef443c72f3017e604f21a7d96e5901dc16fbf228e0a93a332
BLAKE2b-256 checksum
How to use checksums
30174f58627a9720cd72ffb765f90f885b9f3881c519fc659fbe3786e169bfde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-macosx_11_0_arm64.whl

Download URL odooscan-0.16.0-py3-none-macosx_11_0_arm64.whl
Size 4.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
94a825a53d751a42f3aad4810f672aa6133ecaa493d144026ac6571205eb9a92
BLAKE2b-256 checksum
How to use checksums
4b79cfb79e60ff8799533c4c0f6172d25caf86c651d18f4b7e46723c1a6400a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.0-py3-none-macosx_10_12_x86_64.whl

Download URL odooscan-0.16.0-py3-none-macosx_10_12_x86_64.whl
Size 4.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
00f24be45333fb9e73730c5bb6e7eb96da690a9a21bda50330b24ce973ec1707
BLAKE2b-256 checksum
How to use checksums
be3e46de1f740f29a4e82a6655c968ac1e87fc3bb630247dc11b83764e770a58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.16.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