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