Allows to access the sales analysis from a stock buffer, through a smart button visible for the members of the group User: Own Documents Only (same as the original permissions for the same smart button shown in products).
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds a "Sold" smart button on stock buffer forms that opens the sales analysis filtered to that buffer's product, showing the quantity sold in the last 365 days.
This module extends the stock buffer screen (used with DDMRP replenishment) so users can jump straight from a buffer to the sales behind it.
On the stock buffer form, a new "Sold" button appears in the button box at the top, next to the other counters. It displays the quantity sold for the buffer's product over the last 365 days, together with the product's unit of measure. Clicking it opens the standard sales analysis view, automatically filtered to that product.
Business rules shown by the code:
- The button is only visible when the product can be sold (sale_ok is true); otherwise it is hidden.
- It is restricted to users in the Sales / User: Own Documents Only group, matching the permissions of the equivalent button on products.
- The sold quantity, unit of measure and "can be sold" flag are read-only values taken from the product, so they always stay in sync.
The module touches the stock.buffer model and the sales analysis action coming from the Sales app. It does not create new menus or reports; it only adds the button to the existing stock buffer form.
Depends on
Models and fields (1)
- stock.buffer · extends an existing modelproduct_uom_name (Unit of Measure Name), product_id_sale_ok (Can be Sold), product_id_sales_count (Sold)
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-03Confirmation status: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/ddmrp.
terminal Installation and usage
No verified informationInstallation 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.