
Sell downloads in Odoo - and release them only when the order is paid
Odoo can attach a file to a product and show it once the order is confirmed. This module keeps digital files hidden until the order is paid, limits downloads and access time, hands out licence keys, logs every download and revokes access when the order is refunded.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
A confirmed order is not a paid one. With a wire transfer or a salesperson confirming an order by hand, standard Odoo shows the attached file to the customer while the money is still outstanding - and a downloaded file cannot be taken back.
Mark a product document as Sold as a Download and choose when it is released: when the order is paid, or when it is confirmed. Set a download limit per order, an access window in days, a version, and whether a licence key from your pool is issued with each purchase.
Customers find their files under Downloads in the portal, with their licence key and how many downloads are left; unpaid ones say Awaiting payment. You get lists of customer downloads, downloads awaiting payment, licence keys and an append-only download log with IP address.
Who it is for
Software and template sellers Anyone selling installers, templates, e-books, courses or other files. | Shops taking wire transfers Businesses whose orders are often confirmed before the money arrives. | Licence-key products Sellers who must issue one key per purchase and keep track of it. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean database: four sample orders of a software product - two paid, one unpaid and one paid then refunded.
Feature 1
Downloads in the customer portal
The customer sees each file with the order, date and version, the licence key, downloads used out of the limit and the date access ends. Files from the unpaid order show Awaiting payment: this becomes available as soon as your payment clears.
Download counter updated on every download

Feature 2
Download policy per file
On each product document: Sold as a Download, release when paid or when confirmed, download limit, access window in days, version, and Issue a Licence Key with the key pool and who has which key.
0 means unlimited downloads or no expiry

Feature 3
Licence key pool
Load keys for a file; each paid purchase is given the next one. The list shows the key, customer, order and state, with a Revoke button.

Feature 4
Every customer download in one list
Each entitlement shows when it was bought, customer, file, order, downloads used and allowed, access end date and state - Active, Awaiting Payment or Revoked.
The refunded order's files show as Revoked

Feature 5
Awaiting payment
A dedicated list of downloads held back because the order is not paid yet.

Feature 6
Download log
Every download is logged with the time, customer, file, order, file version and IP address.

Feature 7
Downloads on the sales order
The sales order has a Downloads tab with each file, downloads used and allowed, access end date, licence key and state.

How it works, step by step
| 1 | Attach the file to the product On the product, add the file as a document visible on the confirmed order. |
| 2 | Make it a download Tick Sold as a Download, choose Release when the order is paid, set the limit, access window and licence key option. |
| 3 | Load licence keys Add your keys to the pool if the file needs one. |
| 4 | Sell When the order is paid the customer gets the file and key in the portal; a refund revokes access. |
Settings
On each product document (Sales -> Digital Products -> Downloads).
| Sold as a Download | Release this file only under the rules below and log every download. |
| Release | When the order is paid, or when the order is confirmed. |
| Download Limit | Maximum downloads per order; 0 for unlimited. |
| Access Window (days) | Days the download stays available after release; 0 for forever. |
| Version | Version of the file shown to the customer and logged with each download. |
| Issue a Licence Key | Assign the next key from the pool to each purchase. |
Frequently asked questions
What happens if the order is confirmed but not paid?
The file stays hidden and the portal says Awaiting payment until the payment is registered.
What happens on a refund?
On the bench a full credit note on the paid invoice set that order's downloads to Revoked.
Can a licence key be given to two customers?
No. Keys are handed out one per purchase from the pool.
Does it need eCommerce?
No. It depends on Sales and the customer portal only.
Compatibility
Odoo 19 Community and Enterprise | Sales Invoicing, Portal | eCommerce optional | 68 tests run on install |
Get paid before the file leaves
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by e-mail |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1554 |
| Technical Name |
mdv_digital_product |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/digital-product/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module