mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[FIX] stock_account_valuation_report: exclude JE that are not posted
This commit is contained in:
committed by
Christopher Ormaza
parent
78a32d0903
commit
1c0144a4ff
@@ -75,7 +75,9 @@ class ProductProduct(models.Model):
|
||||
sum(aml.balance), sum(quantity),
|
||||
array_agg(aml.id)
|
||||
FROM account_move_line AS aml
|
||||
INNER JOIN account_move AS am ON am.id = aml.move_id
|
||||
WHERE aml.product_id IN %%s
|
||||
AND am.state = 'posted'
|
||||
AND aml.company_id=%%s %s
|
||||
GROUP BY aml.product_id, aml.account_id"""
|
||||
params = (
|
||||
|
||||
Reference in New Issue
Block a user