This module edits the product document smartbutton domain to show the documents of the current product record, plus the documents of the related product template in case the record being a variant.
Odoo uses this mecanism in order to calculate the attachments of a a sale order, however the smartbutton and the documents count variable uses another domain and returns other results, which can cause confusion to users.
The module also adds more filters to customize the search inside the product.document views.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Makes the Documents smart button on products show the documents of the product template as well as the variant, and adds new search filters to the product documents list.
When you open a product (or a product variant) and click the Documents smart button, Odoo normally counts and shows only some of the attached documents, which can be confusing because the count and the list do not always match. This module changes that behaviour.
- On a product variant, the document count now also includes the documents attached to its product template, and the button opens a list showing both the variant's own documents and the template's documents.
- On a product template, the count no longer includes documents that belong only to its individual variants, so the number reflects the template's own documents.
The module also adds two filters to the search panel of the product documents list: - "Documents of this template", which shows only the documents attached to the template. - "Documents of variant and product", which shows both the variant's documents and the template's documents.
These changes affect the product.product and product.template models and the product.document list view. No new menus or reports are added; the module only adjusts existing buttons, counts and search filters.
Depends on
Models and fields (2)
- product.product · extends an existing model
- product.template · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 17.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/product-attribute.
terminal Installation and usage
OCA documentation · Odoo 17.0Usage
Source · Odoo 17.0To use this module, you need to:
- Go to the form view of a product template or product variant.
- Click on the "Documents smartbuton".
- Remove or edit the default filter.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.