Which license key should a custom Odoo module declare?
Declare the license that matches the code your module contains and the edition it runs on. A module your team writes that depends only on Odoo Community code is normally declared under LGPL-3, while a module that builds on Enterprise code belongs under the Enterprise key, OEEL-1. Odoo's Community edition on GitHub is licensed under LGPL-3.0, and Enterprise source code is not publicly available, so the edition your module depends on usually decides the key. The license value in the manifest is a legal statement about who may use and redistribute the code, not a setting to choose for convenience. This page explains the trade-offs but is not legal advice, so have counsel confirm the key before deployment.
The key follows from two things: the edition the module runs on and where each piece of code came from. Code written from scratch by your team is judged differently from code copied out of an OCA module, which is AGPL-3, or from a third-party Apps Store module, which is OPL-1. Check the depends list in the manifest, search for copied snippets, and record who wrote each file. A module that mixes these origins can need a key that none of the sources alone would suggest, so the license decision should be made by reading the whole module, not its name or its first file.
Before deployment, write down the origin of every module in a short register: author, edition dependency, any copied or adapted code and the proposed key. Then ask the partner or internal developer, in writing, who owns the code and whether it will be shared outside your organization. Internal use and distribution to other companies lead to different obligations, and that difference is often where the license question is decided. Custom modules also need a plan that allows them: the Odoo pricing page states that only the Custom plan includes custom modules and can be hosted on Odoo.sh or on-premise.
Which license key fits which kind of module
This table compares the four license keys you will meet in an Odoo codebase by origin, who may use the code, what you must share when you distribute or host it, and where each one typically applies. Use each row as a starting point, then confirm the terms in the full license text and with counsel before you choose a key for your module.
| License | Origin and who may use it | What must be shared | Where it typically applies |
|---|---|---|---|
| LGPL-3.0 (Community code) | Odoo Community edition on GitHub. Anyone may use and modify it under the license terms. | Changed LGPL-covered files generally must be shared when you distribute them. Confirm the exact scope in the license text. | Community-based modules you distribute alongside Odoo Community. |
| AGPL-3.0 (OCA modules) | Community Association repositories maintained by volunteers and companies. Anyone may use them under AGPL-3 terms. | Modified code you distribute or run as a network service must be offered in source form to users. Confirm with counsel. | Business logic in self-hosted or hosted deployments where users interact with the system over a network. |
| OPL-1 (Apps Store modules) | Odoo Apps Store modules from Odoo or third-party vendors. Use is tied to the vendor's terms and your Odoo subscription. | Copying, modifying or redistributing the code is restricted by the license text. Confirm what your purchase allows. | Free or paid add-ons installed into your own Odoo database, subject to vendor support terms. |
| OEEL-1 (Enterprise code) | Odoo Enterprise edition. Source is not publicly available, and access requires a subscription or partner access. | Do not copy or redistribute Enterprise code beyond what your subscription allows. Confirm the restrictions in the text. | Enterprise apps and features on a licensed database, including on-premise installs activated with a subscription code. |
How LGPL-3, AGPL-3 and OPL-1 change your obligations
Copyleft obligations depend on which code your module touches and how you deliver it. The Odoo Community edition is licensed under LGPL-3.0, so a custom module that extends Community code and is distributed to others must be made available under compatible terms, and the upstream code keeps its own license. OCA modules are generally AGPL-3, which adds a network clause: if you modify an AGPL module and let users interact with it over a network, such as through a web client you run for staff or customers, you may have to offer those users the modified source. Before you write any code, list every dependency your module imports or inherits from, note its license key in the manifest and in the repository, and decide whether the module stays internal or leaves your organization.
Apps Store modules sold under OPL-1 come with vendor terms on top of their license. OPL-1 is a proprietary license, so you may run the purchased module on the databases it covers but you should not assume the right to copy, redistribute or modify it. Check the license key in the module's manifest, read the terms that came with the purchase, and confirm whether your own module may inherit from it at all. Enterprise code under OEEL-1 is different again: the Enterprise source is not publicly available and is provided under a subscription, so code that depends on it cannot be relicensed or shared freely, and you should not publish a module that copies Enterprise source.
Confirm the obligations with counsel before you ship or share anything. The points above describe how the licenses are usually read, not a legal opinion, and your position changes if you distribute code, host it for customers, or combine licenses in one module. Ask counsel to review your module's license key, its dependencies, your hosting model and any customer contracts, and keep a written record of the answers. The Odoo on-premise documentation explains how Enterprise activation works, which helps you describe your deployment accurately to counsel.
How the license choice changes by deployment model
Odoo Online is Odoo's hosted service, and the pricing page lists the One App Free and Standard plans as Odoo Online only. You do not install code on a server you run, so the main question is whether your plan allows custom modules at all. The pricing page ties custom modules to the Custom plan, so confirm the plan and the terms in writing before you build anything you expect to run in this environment.
- Plan limit: One App Free and Standard are Odoo Online only, and custom modules appear only in the Custom plan described on the Odoo pricing page.
- Hosted availability: Confirm with Odoo whether the Custom plan is offered on Odoo Online for your account, since the pricing page ties Custom hosting to Odoo.sh and on-premise.
- Upgrade timing: Odoo performs major upgrades on Online on a mandatory two-year cycle, so your modules must be ported on that schedule.
- Support window: Standard support covers three years after a major release, and SaaS versions ship every two to three months and cannot use extended support.
- License terms: Ask which license terms apply to any Enterprise or Apps Store code you add to a hosted database and whether you may share your own modules.
Check the plan feature list and the upgrade dates against the modules on your roadmap before you sign.
Odoo.sh is Odoo's Git-based hosting platform, and the pricing page lists it only under the Custom plan. The same plan is the only one that includes custom modules, so hosting on Odoo.sh is a plan decision as much as a technical one. Your custom modules live in repositories you control and deploy alongside Odoo's code, and the license of each third-party module you add travels with it.
- Plan requirement: Odoo.sh is listed only with the Custom plan, which is also the only plan that includes custom modules and Studio.
- Repository ownership: Keep your custom modules in your own repository and record the license of every OCA module (AGPL-3) and Apps Store module (OPL-1) you pull in.
- Enterprise code: Enterprise source is not publicly available, so Enterprise modules run only where your subscription gives access, and you cannot publish them.
- Upgrade cycle: Odoo.sh major upgrades are mandatory every two years, and paid extended support is available for select versions on Odoo.sh.
- Distribution: Hosting on Odoo.sh does not change what you may distribute, so review the license obligations before you share code with another customer.
Confirm with Odoo which versions and extended support options apply to your account before you choose the branch strategy.
An on-premise Enterprise install gives you the most control over the server, the database and the code, and it is the setup where your modules sit next to OEEL-1 code under a subscription. Enterprise databases are activated by entering the subscription code, and the upgrade service for on-premise use requires an Enterprise subscription. Your license position depends on what you can ship, what you can run and what you can upgrade.
- Activation: Enterprise databases are activated by entering the subscription code, so the subscription governs access to Enterprise modules from the first install.
- Upgrade access: The upgrade service needs an Enterprise subscription, and the upgraded test database should be tested before any production cutover.
- Support limits: Security patches are provided only during standard support, and paid extended support is available for on-premise on select versions.
- Code boundary: Treat any code that depends on Enterprise source under OEEL-1 terms, and get written confirmation of what you may distribute.
- Test copies: Use database duplication with neutralization for development copies so production data stays out of non-production systems.
Ask Odoo to confirm in writing which Enterprise modules your subscription covers and what the OEEL-1 terms allow for your custom modules.
The Community edition is fully open source and its GitHub repository is licensed under LGPL-3.0, so you can install and extend it without an Enterprise subscription. Odoo's upgrade service is not available to Community users, and the pricing page covers hosted plans only. That shifts upgrade planning, testing and any support arrangements to your team or to a partner you choose.
- License base: Community code is LGPL-3.0, so choose the license for your module deliberately and confirm with counsel how it interacts with the Community code it extends.
- No upgrade service: Community installs have no access to Odoo's upgrade service, so you need your own porting and test process for each major version.
- Enterprise dependencies: Do not assume Enterprise modules will run on a Community install, because they depend on an Enterprise subscription.
- Support scope: Odoo's standard support is documented for Online, Odoo.sh and on-premise, so confirm what support, if any, applies to a Community install.
- Feature check: Before you design a module, confirm whether the features you need, such as Studio or multi-company, are available to your setup.
Write down which Odoo features your design depends on and check each one against the edition you plan to run.
How to set and check the license key in a module
This sequence gives each custom module a license key that matches the code it contains and the Odoo editions it depends on. It also leaves a written record that a reviewer can check before the module reaches production.
Confirm the module's origin and edition dependencies
Start by recording where each piece of code came from: written in-house, copied from a Community repository, taken from the Odoo Apps Store, or adapted from Enterprise. Then list every Odoo module the code depends on in its manifest and note whether each one exists in Community, Enterprise, or both. Check that the module runs on a Community-only database before you assume it can ship under a Community license. Done when the team has a short inventory where every dependency is labeled by origin and edition, and the people who wrote the code have signed off on it.
Choose the license key the code is actually under
Pick the key that matches the code's real status, not the one that sounds most permissive. Modules inside the Odoo Community repository are typically LGPL-3, OCA modules are typically AGPL-3, Apps Store modules are commonly published under OPL-1, and Enterprise code is under OEEL-1. A module you write yourself and distribute outside your organization needs a deliberate choice, and that choice is a business and legal decision. Confirm with counsel which key applies to any code you copy, adapt, or redistribute. Done when the chosen key is written in a decision record with the reason for it.
Write the license key into the manifest
Set the license key in the module's
__manifest__.pyfile using thelicensekey, and keep the value identical to the decision record. Check that the value matches the license file in the module folder, such as aLICENSEfile, and that copyright headers in Python and XML files do not contradict it. Do not change the key after release without repeating the decision step. Done when the manifest, the license file, and the decision record all name the same license.Record third-party dependencies and their keys
List every external module, library, or Odoo add-on the custom module imports or depends on, along with its own license key and version. Include OCA repositories, Apps Store modules, and Python packages from the requirements file. Flag any dependency whose license is more restrictive than the key you chose, and any Enterprise-only dependency that the buyer does not hold a subscription for. Ask each vendor or maintainer to confirm the license terms in writing when the text is unclear. Done when a dependency register exists, every entry has a license and version, and open questions have named owners.
Check the module ships only the code it may
Review the package contents before any build leaves the team. Confirm that no Enterprise source files, copied Odoo Apps Store code, or third-party assets appear in a module licensed for a different use. Confirm that the package does not bundle proprietary fonts, icons, or templates without their own terms. Compare the package file list with the dependency register. Done when the reviewer signs off that every file is covered by a license the register records.
Run an independent license review before deployment
Have a second person, ideally someone outside the build team, review the manifest, license file, dependency register, and package contents together. Ask counsel or the license holder to confirm any point the reviewer cannot settle, including whether distributing the module to a customer or affiliate triggers source disclosure duties. Record the reviewer's findings and the fixes. Done when the review record is signed, every finding is resolved or accepted in writing, and the deployment ticket references that record.
Recheck the keys after every upgrade or dependency change
Repeat the inventory and manifest check whenever the Odoo version changes, an OCA or Apps Store module is added or replaced, or a dependency is upgraded. License terms and edition boundaries can change between releases, so the old decision record may no longer hold. Keep the dependency register under version control next to the module source so changes show in the same history. Done when each upgrade ticket includes a refreshed register and a note confirming the license key still matches the code.
Which license key a module must declare depends on where its code came from
The diagram starts with the origin of the code: Community, OCA, Apps Store or Enterprise. Community code under LGPL-3 and OCA code under AGPL-3 each lead to a declared license key, while Apps Store modules are typically published under OPL-1 and Enterprise code falls under OEEL-1. From the declared key, check three follow-on questions: whether you distribute the code, whether users reach it over a network as a hosted service, and whether it depends on Enterprise modules that cannot be redistributed. Confirm the exact key in each module's manifest and the vendor terms before you ship.
Origin of the code determines the license key, then distribution, hosting and dependencies follow.
Where licensing mistakes cause problems later
Most license problems in Odoo projects are not visible on the day a module is written. They appear when code is shared, sold, bundled with another module or ported to a new version. The cards below name the decisions where teams most often get the license wrong.
Copying Enterprise code into Community
Enterprise source is not publicly available and is licensed under OEEL-1, so it cannot be copied into a module you release under LGPL-3. Developers sometimes lift a method from an Enterprise addon to save time, then publish the result. Check every inherited or copied function against its origin, and keep Enterprise-only logic in modules that declare the matching key.
Odoo GitHub repositoryMixing AGPL OCA code into closed products
OCA modules are commonly published under AGPL-3, which applies obligations to network-accessed software as well as distributed software. If a closed-source product embeds or links an OCA module, the combined work may need to be offered under AGPL terms. Confirm the license of every OCA dependency before you decide whether the product stays private or is distributed.
Unclear OPL terms in purchased modules
Apps Store modules sold under OPL-1 come with terms that differ from the open source keys used by Community code. Before buying, read the license file in the module and confirm whether you may modify it, deploy it on several databases and keep your changes private. Ask the vendor in writing how they handle porting to the next supported version.
Missing license headers
A module without a license key in __manifest__.py, or with a header that does not match the license file, leaves the next reader guessing about the terms. Ambiguous metadata also causes problems when the module is listed, audited or handed over. Set the key deliberately, include the license text in the repository and check it during code review.
Dependencies with incompatible keys
A custom module that depends on an LGPL-3 Community addon, an AGPL-3 OCA addon and an OPL-1 Apps Store addon inherits the constraints of each. Build a dependency table with the license key of every module your code imports, inherits or calls, and resolve conflicts before you choose the key for your own module. Re-check the table whenever a dependency is updated.
Upgrades that outrun the license record
When a module is ported to a newer version, the team needs to know which key applies to the original code, the changes and any vendor work. If the license was never recorded in the repository, a port can silently drop headers or copy code under the wrong terms. Store the license decision with the module history and review it at each upgrade.
- Mandatory major upgrades
- Every two years
Questions buyers ask about custom module licensing
Does a custom Odoo module have to be open source?
No, not by default. Whether your module must be published depends on what it depends on and how you distribute it. Odoo Community is licensed under LGPL-3.0, so a module you write for your own company's internal use can usually stay private. Obligations start when you distribute the code to another organization, such as a customer, a subsidiary or a partner. AGPL-3 is stronger because its terms extend to software users who interact with it over a network. Enterprise source code is not publicly available and is governed by its own subscription terms, so a module that depends on Enterprise features cannot be licensed in the same way as Community code. Confirm your position with counsel before you ship code to anyone outside your organization.
What does a license review cost, and who pays for it?
The main cost is professional time to map dependencies, choose the license key, check each manifest and document the decision. In most projects this is a one-time task per module, repeated when a module gains new dependencies or moves to a new Odoo version. Your own engineers can do it, or a partner can do it under a written scope. Counsel time, if you need a legal opinion, is a separate line item that your organization or its lawyers pay for. Costs rise with the number of modules, the number of Enterprise or third-party dependencies, and any plan to distribute code. Ask for a quote that lists the dependency review, the documentation, any retest after a version change and whether legal review is included. DeployOpen does not publish prices, and a quote follows from the written scope.
How long does a module license review take?
The duration depends on module count, dependency depth and whether you plan to distribute the code. Reviewing one internal module with few dependencies is a short task within a larger build. A portfolio that depends on Enterprise code, OCA modules and Apps Store modules takes longer because each dependency needs its terms checked. No duration is set here, so confirm the expected effort in the written scope. Counsel turnaround, if legal review is needed, is outside your team's control and often sets the critical path. Schedule the review before the first production release, since a key chosen late can force rework of manifests and documentation. Repeat the check when you move to a new major version, because dependency changes and support windows can alter the picture.
What does the client need to provide for a license review?
Provide an inventory of custom modules and their __manifest__.py files, along with every third-party, OCA and Apps Store module the code depends on. List the Odoo editions and subscriptions you run, so the review can separate Community dependencies from Enterprise ones. State how you plan to distribute the code: internal only, shared with a subsidiary, delivered to a customer or published. Describe your hosting model, because Odoo's pricing page says only the Custom plan can run on Odoo.sh or on-premise with custom modules and multi-company, Studio and custom module features. Name the person who confirms business intent and the person who signs off the legal interpretation. Give access to a test database so dependencies can be checked against a running system.
Can our own team choose the license key alone?
Yes, your team can declare the key in the manifest, but the choice should follow from a dependency check and a clear distribution decision. The declared license must match what your code actually depends on and what you intend to do with it. Engineers can inventory imports, inherited models and manifest dependencies themselves. The legal consequences of those dependencies, and of any distribution, are a question for counsel. If your module depends on AGPL-3 OCA code, Enterprise code or an Apps Store module, confirm those terms before you choose your key. Mistakes are easy to make and hard to reverse once code has left your organization, so record the decision and the reasons in your repository.
How do Enterprise subscriptions and standard support affect the choice?
They shape the operating constraints around the license more than the key itself. Odoo's upgrade service on-premise requires an Enterprise subscription, and Community has no access to it, so your upgrade path depends on that subscription. Odoo's support documentation says standard support covers the first three years after a major release on Odoo Online, Odoo.sh and on-premise, including security updates and bug fixes. Security patches are only provided during standard support. Odoo 19.0 standard support runs until September 2028, while Odoo 17.0 standard support ended in September 2026. A correctly licensed module can still stall if its base version leaves standard support, so plan the license decision together with the upgrade schedule.
Do OCA and Apps Store modules change the license of our own code?
Installing a third-party module does not change the license of code you wrote, but the terms of any copied or derived code still apply. OCA modules are published under their own manifest license, which is commonly AGPL-3, so check the field in each module before you reuse it. Apps Store modules carry their publisher's license, often OPL-1, and you cannot relicense that code under your own key. Read the license field, the publisher's terms and the dependency chain before you copy, fork or extend a module. If a third-party module is only installed and not modified, the review is simpler, but you still need to record which modules your custom code depends on and under what terms.
What to confirm in your environment before you decide
Licensing for a custom Odoo module depends on facts about your own setup, not only on the license names. The cards below list what to verify in your environment and in writing before you choose a license key or distribute any code.
Exact license text of each dependency
Each Odoo module declares its own license in its manifest, and the Community repository is licensed under LGPL-3.0, while OCA and Apps Store modules may carry other terms. Pull the license file and manifest entry for every dependency your module imports, and record the version you are running. Do not assume a whole repository shares one license, because individual modules can differ.
Odoo GitHub repositoryYour edition and subscription
Enterprise source code is not publicly available and requires a subscription or partner access, so what you may read, modify and deploy depends on the edition you hold. Confirm which edition each environment runs and whether the subscription covers every server, including staging copies. Write down who holds the subscription code and who is allowed to use it.
Odoo's current Apps Store terms
Apps Store modules are governed by terms set by Odoo and by each publisher, not by the open-source licenses alone. Read the current terms on the pricing and Apps Store pages at the time of purchase, and keep a copy with the module's version. Ask the publisher in writing whether their module may be redistributed or reused across your companies.
Odoo pricingWhether you distribute or only host
Obligations for sharing code often turn on whether you give copies of software to others or only run it for your own users. Map each deployment: internal use on your own servers, hosting for a customer, or shipping a module to a client or to the public. Your answer changes which license terms apply and what source you must provide.
Your hosting model and support window
Odoo Online, Odoo.sh and on-premise installs each have different rules for upgrades, extended support and who may access the source. Confirm where the database and code will run, because the hosting type affects whether your custom modules can be deployed at all. Check the standard support dates for your target version before you license code against it.
Support documentationWhether counsel must sign off
Licensing a module that combines LGPL, AGPL, OPL and OEEL code can create obligations that depend on how the pieces link and where they run. Ask your legal or open-source compliance team to review the final dependency list, the chosen license key and any contract with a client or publisher. DeployOpen can prepare the inventory, but a qualified lawyer should confirm the legal conclusions.
How DeployOpen reviews module licenses
DeployOpen reviews the license declared by each custom Odoo module against the code it imports, the edition it runs on and the way you plan to share it. The review is written into the scope before any build starts, so the license decision is made on purpose rather than discovered at handover.
How we scope
- Inventory every custom module, its declared license key and any OCA or Apps Store code it depends on.
- Confirm which edition, Community or Enterprise, each module must run on in your environment.
- Agree the license review as a written deliverable in a fixed-scope engagement before work starts.
How we build
- Set the license key in each module manifest to match the dependencies it inherits from or bundles.
- Keep Enterprise-only code out of modules intended for Community or redistribution.
- Record the reasoning for each license choice so later developers can follow it during upgrades.
How we hand over
- Deliver a license register listing each module, its key, its dependencies and any distribution limits.
- Document which parties may use, modify or redistribute each module, based on the chosen license.
- Provide a checklist for your legal or compliance team to confirm the position before wider release.
How we support
- Re-check the license register when a module gains a new dependency or moves to a newer Odoo version.
- Offer ongoing support and upgrade work as a retainer, covering license changes that follow each upgrade.
- Recommend that your counsel confirm the final license position, since DeployOpen does not provide legal advice.

