TIP: You can type at any time to perform a new search.
Website Sale Product Document Variant
website_sale_product_document_variant · OCA/e-commerce
- Repository
- OCA/e-commerce · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Website
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/e-commerce
- Last tracking update
- 2026-09-16 23:31:44
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Ricardoalso, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- geoip2
- System dependencies
- None
- Required by
- None
- Description
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.
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_document_form |
product.document | form | Inherits website_sale.product_document_form | |
product_document_kanban |
product.document | kanban | Inherits website_sale.product_document_kanban | |
product_document_list |
product.document | list | Inherits website_sale.product_document_list | |
product_documents_content |
product_documents_content | ir.ui.view | qweb | New |
product_documents_variant_aware |
Product Page Documents Include Variant Documents | ir.ui.view | qweb | Inherits website_sale.product |
HTTP endpoints (2)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/shop/<model("product.template"):product_template>/document/<int:document_id> |
WebsiteSaleProductDocumentVariant.product_document |
public | http | ALL | sudo website |
/website_sale/get_combination_info |
WebsiteSaleProductDocumentVariantController.get_combination_info_website |
public | jsonrpc | POST | website |
Models touched (2)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.