Report stock quantity defines a custom SQL View in init function, inline the view CTE to improve performances of the product.template/product.product forecasted quantity reports. Remove product_tmpl_id related attribute and add product_tmpl_id in SQL View's Select/Group_by to allow pushing down tmpl_id filters in query plans. closes odoo/odoo#69555 X-original-commit: 4c62765195a6410da1c4e74c0f1a0fcf57c38e97 Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>