Odoo Community Association

Website Sale Product Document Variant

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

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.

Table of contents

Usage

  1. 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.
  2. 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.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/e-commerce project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.