From f917da81f89c402010c84c7d711f7e9e8b28a37d Mon Sep 17 00:00:00 2001 From: Raman Marikanti Date: Thu, 18 Dec 2025 14:59:40 +0530 Subject: [PATCH] report code products only --- custom_addons/dashboard/models/stock_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_addons/dashboard/models/stock_dashboard.py b/custom_addons/dashboard/models/stock_dashboard.py index d694c0f47..125f403ba 100644 --- a/custom_addons/dashboard/models/stock_dashboard.py +++ b/custom_addons/dashboard/models/stock_dashboard.py @@ -119,7 +119,7 @@ class SamashtiDashboard(models.AbstractModel): sl_src.usage IN ('internal', 'supplier', 'production', 'customer', 'inventory') AND sl_dest.usage IN ('internal', 'supplier', 'production', 'customer', 'inventory') AND sm.state = 'done' AND - pt.type = 'consu' + pt.type = 'consu' AND pp.default_code not null GROUP BY pp.default_code, pt.name, pc.name, uom.name, pp.id