Pivot of products with less than 5 in stock Open the pivot view of Sales Analysis (model_name: sale.report). Filter the view by products with less than 5 in stock (field_name: product_id.qty_available). Group by product variant (field_name: product_id) and set the measure directly as the ordered quantity (measure_name: product_uom_qty) without computing the available measures. Don't mention model_name, field_name, measure_name or any record ids in the response.