Why a security review of Odoo modules comes before install
A module runs with the full reach of your Odoo database, so it needs review before it is installed, not after. Once an Apps Store module or a custom build is loaded, its Python code runs inside the same server process that holds customer, payroll, pricing and accounting data, and it can read or change any table the Odoo database user can reach. Odoo's own access rules, such as access files and record rules, only constrain code that goes through the ORM. A module that issues raw SQL, calls sudo() to skip record rules, or exposes a public controller can step around those controls. Review the code paths before the first install on a staging copy, and keep the results with the module version so you can compare them after each update.
Community and Enterprise share the same Python and PostgreSQL base, so a module written against the Community code usually runs on both. The difference is that the Enterprise source code is not public and requires a subscription or partner access, which limits what an outside reviewer can read in the core. Confirm with Odoo which Enterprise sources your reviewers are permitted to inspect before you scope the work. Your review should also cover the dependencies a module pulls in, because a module that looks small may depend on code you have not seen.
The maintainer question belongs in the review because Odoo's support windows set how long a fix can be expected. Odoo standard support covers the first three years after a major release, and security patches are only provided during that period, with paid extended support limited to Odoo.sh for select versions and on-premise. A module whose author has stopped updating it can fall behind a supported version and then stop receiving fixes from anyone. Ask who will patch the module for each Odoo version you plan to run, how fast they respond to advisories, and who owns the code if the author disappears. DeployOpen performs security testing and prepares evidence for compliance assessments, but it does not issue audit reports or certifications, so the findings are inputs to your own decisions and to any independent assessment you commission.
Which code patterns in an Odoo module need the closest reading
Odoo modules run with the database, the web layer and the access model all in one codebase, so a small shortcut in one file can bypass rules defined in another. The six patterns below are where reviewers should slow down first, whether the module comes from the Apps Store, the Community Association or an in-house team.
Raw SQL that bypasses the ORM
Look for cr.execute calls and string-built queries. Raw SQL skips the ORM's access checks, record rules and field-level restrictions, so the query returns or changes rows that the user's groups would normally hide. Check whether every query uses parameter placeholders rather than string formatting, whether it reads only the tables it needs, and whether any write path has an equivalent ORM check. Ask the author why the ORM could not do the job.
sudo() calls running as superuser
A sudo() call runs the rest of the method with superuser rights, ignoring the access rights and record rules of the person clicking the button. Search for sudo() and list each caller. A sudo() that reads a field to compute a default is usually harmless, while one that writes records or follows a user-supplied ID can let a low-privilege user act on records they should never reach. Confirm that the method still checks the requesting user before it acts.
Public and unauthenticated controllers
Controllers declared with auth='public' or auth='none' accept requests without a logged-in session. Each route is part of the attack surface, including routes that look like read-only helpers. Check the route path, the accepted parameters, the types of each input, and whether the handler validates record IDs against the caller's rights. Confirm the route is needed for anonymous access, and that it does not return data from sudo() calls or internal models.
Unescaped output in QWeb templates
QWeb escapes values by default, so the risk comes from places that opt out. Search templates for t-raw, and Python code that wraps strings in Markup or marks them as safe before they reach a template. Each of these can carry user-entered text into the page as HTML, which opens cross-site scripting. Check where the value originates, whether a user can edit it, and whether it appears in emails, reports or portal pages that other users see.
Access control CSV files
The ir.model.access.csv file sets create, read, write and unlink permissions per model and group. Read every row for each model the module adds. Watch for rows that grant write or unlink to a group that only needs read, for rows that apply to all users with no group, and for models with no row at all, which deny access by default and can break the module in ways that tempt teams to widen rights. Confirm that the groups referenced exist and match the roles in your plan.
Missing or overly broad record rules
Record rules narrow which rows a group can see, for example only its own orders or one company. A module that adds a model without a rule, or that uses a domain of [(1, '=', 1)], exposes every record to every user with access to the model. Review each rule's domain, the groups it applies to, and whether it is global. Ask for a test where two users in different groups each see only their own records. Confirm that rules still hold after the module is upgraded.
How a review of a module is carried out
A module review starts by fixing what is being reviewed: the exact Odoo major version, the module's version string in its __manifest__.py, and the source it came from, whether that is an Apps Store download, an OCA repository commit or an in-house Git revision. Record the commit hash or package checksum in the review file. Then map the module's depends list, every model it inherits with _inherit, every view it extends and every controller it adds. This map tells the reviewer which parts of the core and of other installed modules the code can reach, and it shows where a small change in a base model could alter access for a whole group of users. Read the security/ directory first, including ir.model.access.csv and any record rule XML, and the controllers/ directory second, because these files define who can reach what before any business logic runs.
Once the surface is mapped, trace data from each web input to each database write. Follow request parameters through controller methods into search, create, write and unlink calls, and flag every place where the code calls sudo(), runs raw SQL through self.env.cr.execute, marks a route with auth='public' or auth='none', or passes user input into QWeb with the t-raw or Markup mechanisms without escaping. Static reading is necessary but not enough. Run the module on a staging copy, created from a neutralized duplicate of production as described in the Odoo on-premise documentation, and log in as one test user per group in use, including portal and public users. Confirm that each user sees and changes only what the access rules intend, and that no route returns data to an unauthenticated visitor. Finally, install the module alongside the other modules in your database, since two modules that each look safe can conflict when they override the same method or record rule.
Record the review result against the version, and repeat it whenever the module changes. A change to a module's version, a new commit in an OCA repository or a vendor update to an Apps Store module makes earlier findings stale, and an Odoo major upgrade resets compatibility for every custom module. Confirm with the module author or the internal owner who will fix defects after go-live, who receives advisories and who approves updates. A module with no named maintainer, no release history and a dependency on an unsupported Odoo version is a risk to plan for, not only a code issue. Decide before installation whether the module will be patched in your fork or replaced, because that decision determines how much of this review must be repeated each time the code moves.
How the source of a module changes the review
This table compares four sources of Odoo modules: Odoo's own Apps Store publishers, third-party Apps Store publishers, Odoo Community Association modules and in-house code. Read each row as the question you must answer before install, and use the evidence column to decide how deep the code review needs to go.
| Source | What to confirm before install | Evidence to request | What the reviewer can verify |
|---|---|---|---|
| Odoo's own publishers | Whether the module is Community or Enterprise only, and which Odoo release it targets | Release notes, the version tag matching your database, and the Odoo support window for that version | Code is available only where licensed, so verify the installed version and check for known advisories against your release |
| Third-party Apps Store publishers | Who the publisher is, whether the license allows your use, and whether the module is still maintained for your version | Publisher contact, license text, changelog, the latest release date and the list of supported Odoo versions | Source code and install behavior can be inspected in a test database, but ongoing maintenance is a publisher decision you cannot verify from the outside |
| Odoo Community Association modules | Whether the module is maintained for your exact Odoo version and who reviews changes to it | Commit history on the project repository, open issues, and the review process for merged pull requests | Full source is public, so raw SQL, sudo calls and access files can be read directly, though maintenance depends on volunteer activity |
| In-house custom modules | Who wrote it, which Odoo version it targets, and whether the author will maintain it after go-live | Design notes, a named owner, automated tests, and a written port plan for each upgrade | Full source is yours, so every security rule can be reviewed and tested, but the review is only as good as the reviewer's Odoo knowledge |
| License permissions | Whether you may modify, redistribute or run the code in your infrastructure without a further subscription | The license file in the module folder and any separate subscription terms from the publisher | Read the license text, which is a legal question to confirm with counsel, not a technical test |
| Maintenance after go-live | Who patches the module when Odoo or the module releases a fix | A support agreement or written maintainer commitment, and a named internal owner | Track the module's release history and compare it with the Odoo version and advisories you apply |
Steps to review a module before it reaches production
This sequence turns an unknown module into a reviewed, tested and owned component, so the approval to install rests on recorded checks rather than on the module's listing or its author's reputation.
Inventory modules and their dependencies
List every module requested for the database, including Apps Store downloads, OCA modules, in-house code and each module it depends on, with its source, author, license and the Git commit or package it came from. The owner of the change signs off the inventory. It is done when every name in the database manifest maps to one recorded source and no module is installed from an unlisted location.
Pin each module to the database's Odoo major version
Confirm that each module's manifest declares the same Odoo major version as the database, and that the exact code version is pinned in version control. Check the Odoo version of the target database before you accept any module, because a module built for another major version can break at install or upgrade. It is done when a written version record exists for every module and the reviewer has confirmed the match.
Review controllers and public routes
Read every controller and each route it declares, noting the auth setting, the HTTP methods accepted and whether the route is reachable without login. Flag any route with a public or none authentication setting, any endpoint that accepts unvalidated input, and any redirect built from user input. The reviewer records each route in a table with its exposure. It is done when every public route has a documented reason and an owner.
Search for sudo, raw SQL and unescaped output
Search the code for sudo() calls, cr.execute and direct string building in queries, and template output marked as trusted or raw. Each hit needs a written justification showing why it cannot run under the calling user's rights, and parameterized queries must replace string formatting. Review QWeb templates for unescaped output that could carry script into a page. It is done when each hit is either removed or recorded with a reason the security lead accepts.
Check access files and record rules
Compare the access control list file and any record rule files with the groups the business plans to use. Confirm every model has an explicit access line, that no rule grants broader access than the business process needs, and that no group is given rights it does not require. Tests in this step use the rules as written, not as the developer described them. It is done when a matrix of model, group and permitted operation matches the approved role design.
Test each user group on a neutralized staging copy
Restore a copy of the production database, neutralize it so no outbound email or payment action reaches a real party, install the module set there, and sign in as one test user per group. Attempt the expected actions and several forbidden ones, including direct URL access to records outside the rule scope. Record each result with the user, record and outcome. It is done when every group's expected and forbidden actions have been tested and the results are filed with the review.
Log findings with severity and fix owner
Record every issue in one register with a severity rating, the file and line or route affected, the reproduction steps and a named owner for the fix. Separate code defects, configuration gaps and vendor or community issues so each has a clear route. The register is complete when no finding lacks an owner or severity, and the security lead has reviewed the list.
Retest fixes and approve installation
Apply fixes to the pinned version, repeat the affected tests on staging, and confirm each finding is closed or formally accepted with a named risk owner. Then record the approval with the module versions, the review date, and the maintainer who will receive security updates after go-live. Approval is complete when the register shows every item closed or accepted and the production install uses the exact versions tested.
How a module moves from source to production through review
A module starts at intake, where the team records its origin, version and license and confirms who will maintain it after go-live. Static review then checks controllers, raw SQL, sudo calls and access files before anything is installed. The module is installed on a staging copy and tested with a user from each group, so record rules and access rights are proven rather than assumed. Findings go back to the author for fixes and a retest, and only an approved build reaches production, with the maintenance owner recorded in the change record.
Review path from module intake to production, with the retest loop and maintenance owner record.
Security and operational considerations after go-live
A module that passes review on the day it goes live still needs an owner, a repeatable review for each change, and a test plan for every Odoo major version. The four items below connect the first review to the work that keeps the module safe across patches, upgrades and staff changes.
Who owns patches after go-live
Every installed module needs a named owner who receives security notices and decides when to act. For Apps Store and OCA modules, that owner is usually your team, since the module vendor or community maintainer may not notify you of issues in the same way Odoo does for its own code. Write down who checks the module's release notes, who is paid or assigned to apply fixes, and what happens when the original author stops maintaining it. Ask the vendor in writing how security fixes reach customers and how long they take to ship.
Odoo support docsRe-reviewing module updates
Each new version of a module, and each patch you apply to an in-house module, should go through the same checks used at first install. Compare the diff for new raw SQL, new sudo() calls, new public controllers, changed access files and changed record rules. Review the diff rather than the release notes alone, because a changelog rarely lists a new sudo() call. Keep a record of which version passed review and which version is running in production so you can tell whether a given instance was reviewed.
Behavior across major upgrades
Odoo major versions change the ORM, views and web client, so a module that works on one version can break or silently lose access checks on the next. Odoo's upgrade documentation says the upgraded database should be tested before production use, so run the module on an upgraded test copy and repeat the security checks there. On Odoo Online and Odoo.sh, major upgrades are mandatory every two years, which sets the cadence for this retest. Confirm with the module vendor which Odoo versions it supports before you plan the upgrade.
- Mandatory major upgrades
- Every 2 years
Source access and vendor support
Know where the module's source lives, who holds the repository, and whether you can build and patch it yourself if the vendor stops responding. Odoo Enterprise source code is not publicly available and needs a subscription or partner access, so an Enterprise dependency can limit what your team can read. Confirm which support channel covers the module, whether it falls under Odoo's standard support window, and whether you hold a copy of the code under a license that permits internal changes. Keep an escrow or mirror of your in-house code in your own infrastructure.
Odoo GitHub repositoryQuestions buyers ask before a module review
How much does a security review of an Odoo module cost?
No fixed figure can be given here because the cost follows from the written scope, and DeployOpen does not publish a price list. The main cost components are the reviewer's time to read the code, run the module on a staging copy, test access as each user group, and write the findings report. Effort rises with module size, the number of controllers and models, dependency depth, how much automated test coverage exists, and how many user groups and record rules must be tested. Ask for a quote that lists the modules, versions, number of groups, whether a retest is included, and whether the review covers Apps Store modules, in-house code or both.
How long does a module review take, and what sets the duration?
Duration depends on the module count, the code volume and how quickly the client can provide a working environment. The reviewer first needs the exact source and version, then a staging copy that matches production data structures without real personal data. Time is spent on static review of raw SQL, sudo() calls, public controllers, output escaping, access rights files and record rules, followed by dynamic testing as each group. Ask the reviewer for a written timeline with milestones, and confirm how long the client has to answer questions before the review pauses.
What must our team provide before a module review starts?
The review needs a short list of inputs from your side:
- The module source code, pinned to the exact Git commit or package version running in your environment
- The Odoo version and edition, plus a list of other installed modules the target depends on
- A staging copy of the database, duplicated and neutralized so that test runs do not send email or touch live payment providers
- Test accounts for each user group that will use the module, including portal users if applicable
- A named owner who can answer business questions and approve fixes
Also ask who will maintain the module after go-live, since that person needs to receive the findings.
Can our internal team review Apps Store and custom modules without an outside firm?
Yes, an internal team can run a module review if its members have Odoo development skills, including the ORM, security files, record rules and the web framework, and if they follow a written checklist. The checklist should cover raw SQL that bypasses the ORM, sudo() calls, public controllers and their input handling, unescaped output in templates, access rights files, record rules, and how each user group behaves on a staging copy. An outside reviewer adds independent testing and a second set of eyes, which many security and compliance teams require. Confirm the checklist and the reviewer's skills before choosing either path.
What does a retest cover after fixes are made?
A retest checks that each reported finding has been fixed in the code and behaves correctly on a staging copy, and that the fix has not broken the module's normal behavior. The reviewer should rerun the affected controllers, raw SQL paths, access checks and record rules for every user group in scope, and document the result against each finding. Ask whether the retest is included in the fixed scope, how many retest rounds are covered, and whether new code added during the fix is reviewed as well. Fixes made to upstream code may need to be carried forward on each module update, so ask how that is tracked.
Does a module review cover Odoo Enterprise modules and licensing?
A review applies to the code that is installed and running in your environment, whatever its license. Community and Apps Store modules are typically reviewed from their source, while Enterprise source code is not publicly available and requires a subscription or partner access. Confirm with Odoo and your subscription terms which Enterprise code the reviewer may access and how that access is handled. Also check the license of each third-party module, since some restrict redistribution or modification, and confirm the scope in writing before the review begins.
Does a module review also check the Odoo version we are running?
The review should record the exact Odoo version, because security behavior and support status change between major versions. Standard support covers the first three years after a major release, and security patches are only provided during standard support, so a module tested on an unsupported version carries extra risk. Ask the reviewer to confirm which Odoo version the module targets and to flag any finding that depends on core behavior that may change in an upcoming upgrade.
Who maintains a module after go-live and why it decides risk
An unmaintained module is a standing security risk, and the date that matters is the end of standard support for the Odoo version it runs on. Odoo's standard support covers the first three years after a major release on Odoo Online, Odoo.sh and on-premise, and security patches are only provided during that window. Paid extended support exists for select versions on Odoo.sh and on-premise, but it does not change the rule that patches come from the standard support period. A custom or Apps Store module that nobody updates therefore carries its vulnerabilities forward after Odoo stops patching the core beneath it. Before go-live, confirm with the vendor or partner which Odoo version each module targets and when that version's standard support ends, and record those dates next to the module in your register.
Every custom and third-party module needs a named owner who is accountable for security fixes, not just for functionality. The owner should be a person or a contracted team with a written duty to review Odoo release notes and advisories, to re-run the module's access files and record rules after each upgrade, and to approve any change to sudo() calls or raw SQL. Ask for the maintainer's contact, the license, the last commit date and the target Odoo versions for each Apps Store module, and for in-house code, confirm who holds the repository and who can merge a patch. Patches should flow through the same staging tests described elsewhere on this page, and the owner should be able to show when each module was last reviewed. Ask your partner to state, in the statement of work, whether patching custom and OCA modules is included in the scope or billed separately, because that decision drives the recurring cost of ownership.
Set a removal rule before the first module is installed, so that a module losing maintenance is disabled rather than kept out of habit. A practical rule is to uninstall or replace any module that has no named owner, no compatible release for the next Odoo version on your upgrade plan, or no response to a security report within a period your security team agrees in advance. Removal needs its own check: uninstalling a module can leave data, menu entries, and access rules behind, so test the removal on a database copy and review the access files afterwards. Record the decision in your change process and revisit the register at each Odoo upgrade, because the version change is the point where most unmaintained modules quietly stop working or stop being safe.
How DeployOpen scopes and delivers a module security review
DeployOpen reviews Apps Store and custom Odoo modules inside the client's own environment, starting from a written scope that names every module, version and repository in question. The work ends with a findings report, fixes agreed with the client's developers, a retest and a maintenance plan for the code after go-live.
How we scope
- We agree in writing which modules, versions and repositories are in the review, and which are excluded.
- The scope states which Odoo edition and version the modules run on, since Community and Enterprise differ.
- We confirm who owns each module, who maintains it, and where its source code is kept.
How we build
- We read the code for raw SQL, sudo calls, public controllers, unescaped output, access files and record rules.
- We install the modules on a staging copy of the client's database, with neutralized data, and test access as each role.
- We record each finding with the file, the risk, a suggested fix and the evidence needed to confirm it.
How we hand over
- The report lists findings by severity, with reproduction steps and the fix each one needs.
- We retest every fix on the same staging copy and document what passed, failed or remains open.
- We hand over a short maintenance note covering update steps, owners, and the checks to repeat before each Odoo upgrade.
How we support
- Engagements are fixed-scope, so the written scope sets the deliverables and the timeline before work starts.
- Ongoing support, module upgrades and continuous testing are available as a retainer for modules that change over time.
- Ask any provider to confirm how they will handle the client's code, data and access during the review.

