Skip to content

Commit

Permalink
[9.0][IMP] add self, date_from and date_to on mis_builder localcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Jul 6, 2017
1 parent ac4c1c8 commit 9dd5e8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mis_builder/models/mis_report.py
Expand Up @@ -803,6 +803,7 @@ def prepare_aep(self, company):

def prepare_locals_dict(self):
return {
'self': self,
'sum': _sum,
'min': _min,
'max': _max,
Expand Down Expand Up @@ -918,6 +919,7 @@ def declare_and_compute_period(self, kpi_matrix,
locals_dict = {}

locals_dict.update(self.prepare_locals_dict())
locals_dict.update({'date_from': date_from, 'date_to': date_to})

# fetch non-accounting queries
locals_dict.update(self._fetch_queries(
Expand Down

0 comments on commit 9dd5e8c

Please sign in to comment.