This commit is contained in:
2026-02-14 18:36:26 +01:00
parent 330fc8d320
commit f3370e89ea

View File

@@ -533,13 +533,14 @@ class ValuationReport(ValuationBase, ModelView):
@classmethod
def table_query(cls):
Valuation = Pool().get('valuation.valuation')
Date = Pool().get('ir.date')
val = Valuation.__table__()
context = Transaction().context
valuation_date = context.get('valuation_date')
strategy = context.get('strategy')
wh = True
if valuation_date:
wh &= (val.date == valuation_date)
if not valuation_date:
valuation_date = Date.today()
wh = (val.date == valuation_date)
if strategy:
wh &= (val.strategy == strategy)