Browse Source

[FIX] mis_builder: propagate context

pull/90/head
Stéphane Bidoul 10 years ago
parent
commit
b2367abb38
  1. 4
      mis_builder/models/mis_builder.py

4
mis_builder/models/mis_builder.py

@ -454,8 +454,10 @@ class mis_report_instance_period(orm.Model):
]
def drilldown(self, cr, uid, _id, expr, context=None):
if context is None:
context = {}
this = self.browse(cr, uid, _id, context=context)[0]
env = Environment(cr, uid, {})
env = Environment(cr, uid, context)
aep = AccountingExpressionProcessor(env)
if aep.has_account_var(expr):
aep.parse_expr(expr)

Loading…
Cancel
Save