main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit f3370e89ea - Show all commits

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)