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 over crates/odooscan_core/tests/fixtures. That fixture holds custom modules written to trigger every rule, and a stand-in for Odoo core that they depend on, whose auto-install modules pin down which modules count as always installed; review changes with cargo insta review. 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.14.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.14.0
File Size Uploaded Provenance Actions
odooscan-0.14.0.tar.gz 841.4 kB Without provenance Details for odooscan-0.14.0.tar.gz

Built distributions (wheels)

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

Total release size: 28.9 MB

Release files / odooscan-0.14.0.tar.gz

Download URL odooscan-0.14.0.tar.gz
Size 841.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d36df3f785a47997a187cdc6a001bc0b8f559ac869a68934826eea7d535c1987
BLAKE2b-256 checksum
How to use checksums
16a99998fac7d8cac46956f19b0ff6cef8348001ffa468a125061d9d4f176dbd
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.14.0-py3-none-win_amd64.whl

Download URL odooscan-0.14.0-py3-none-win_amd64.whl
Size 4.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9f6497352add6ecb7e1a4b42fb1e9ed4743bf6cfc4d7c9a82bf14028572c5100
BLAKE2b-256 checksum
How to use checksums
6efd36fe5440345a564372b9880c9a90dcd00d22728d8b4db31617ca603a99b0
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.14.0-py3-none-musllinux_1_2_x86_64.whl

Download URL odooscan-0.14.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
787bb5848fe4b2867c5561e726c8d8027cc8f9f1f006c1bc3ef1daa2c7914a6b
BLAKE2b-256 checksum
How to use checksums
5ef351f03c4f44f7e93e9c0262393dbdda4c7c8931fd426ecef2eab620631e15
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.14.0-py3-none-musllinux_1_2_aarch64.whl

Download URL odooscan-0.14.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
f33fe98a9b58844023c909a1d1c57bdc8171ce46957adf50ab942907a5985b4a
BLAKE2b-256 checksum
How to use checksums
eb6d6cec089ae758a32adeb8417039c3df1d91cb81ceb97508ed376ab2e696cb
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.14.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL odooscan-0.14.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
c9ded350787fbd06edd7f581ee924d879c9478ef48e353dbb9447616ce5a1364
BLAKE2b-256 checksum
How to use checksums
e88f0161a9b6180d6f8d1df269e29fbb6d4e6d4c7d3dba7de0bfa874955c5168
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.14.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL odooscan-0.14.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
5ea04ed9080e3241c44a7971913abcaa09e579114bfba9cb4f5e35f0bfd20ca9
BLAKE2b-256 checksum
How to use checksums
e190b2739d546531777c715527d0266d9008707c0235694fef45e2a70d9b4011
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.14.0-py3-none-macosx_11_0_arm64.whl

Download URL odooscan-0.14.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
4de387bc1f6afa2916d4109b9b9f964ad286fb2360a61b578dcc85d7a329d355
BLAKE2b-256 checksum
How to use checksums
e9eb7e247536a50d0a05e91d542a7277b206bc111c21e98eafa650f018a80cfe
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.14.0-py3-none-macosx_10_12_x86_64.whl

Download URL odooscan-0.14.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
6cea097d72337d1113881d611817bf9d14293adf54fa3be0ddadaeccef1cb4b5
BLAKE2b-256 checksum
How to use checksums
27d837a13c118109fb39681d7a32df710a3433edd2f77fd21af2b4227ed27309
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.14.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