report code products only

This commit is contained in:
Raman Marikanti 2025-12-18 14:59:40 +05:30
parent 76aa09f108
commit f917da81f8
1 changed files with 1 additions and 1 deletions

View File

@ -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