14.02.26
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user