OdooWiki OCA HUB

Website Sale Product Document Variant

website_sale_product_document_variant folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

Standard Odoo blocks publishing a product document that is attached to a specific variant instead of the whole product: the "Publish on website" option is hidden and cannot be enabled for it.

This module lifts that limitation. A document attached to a variant can be published, is shown on the product page alongside the product's own documents for whichever variant the customer currently has selected, and the list refreshes automatically -- without reloading the page -- when the customer switches variant. The section disappears entirely when the selected variant has no published document. Downloading such a document is only allowed while it is published.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Publish documents attached to a specific product variant on the website product page. The documents section updates automatically when the customer switches variant, without reloading the page.

In standard Odoo, a document attached to a specific product variant cannot be published on the website: the "Publish on website" option is hidden. This module removes that limitation.

  • In the product document form, kanban and list views, the website publishing option is now visible for variant documents, so you can tick it.
  • On the product page, the Documents section shows the published documents of the product template plus those of the currently selected variant.
  • When the customer changes variant, the Documents section refreshes automatically (no page reload) and hides itself if the selected variant has no published document.
  • Downloading a document is only allowed while it is published and belongs to the product or one of its variants; otherwise the visitor is redirected to the shop.

The module touches product.document, product.template and the website sale product page. It adds no new menus or models.

Depends on

website_sale
Models and fields (2)
  • product.document · extends an existing model
  • product.template · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • On a product's variant (Sales > Products > Variants, or the "Variants" smart button on a product), open the Documents tab (or the linked Attachments) and enable "Publish on website" on the document, exactly as already possible for a document attached to the whole product.
  • On the eCommerce product page, the document appears in the "Documents" section together with the product's own published documents, for as long as that variant stays selected. Selecting a different variant refreshes the list to that variant's own documents, without a page reload.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.