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 @classmethod
def table_query(cls): def table_query(cls):
Valuation = Pool().get('valuation.valuation') Valuation = Pool().get('valuation.valuation')
Date = Pool().get('ir.date')
val = Valuation.__table__() val = Valuation.__table__()
context = Transaction().context context = Transaction().context
valuation_date = context.get('valuation_date') valuation_date = context.get('valuation_date')
strategy = context.get('strategy') strategy = context.get('strategy')
wh = True if not valuation_date:
if valuation_date: valuation_date = Date.today()
wh &= (val.date == valuation_date) wh = (val.date == valuation_date)
if strategy: if strategy:
wh &= (val.strategy == strategy) wh &= (val.strategy == strategy)