Skip to content

Commit

Permalink
[ADD] Use the complete context to use it from the outside if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarion-source committed Sep 12, 2024
1 parent 5c4e7d7 commit eaf6e72
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mis_builder/models/mis_report_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,12 @@ def drilldown(self, arg):
)
domain.extend(period._get_additional_move_line_filter())
views = self._get_drilldown_model_views(period.source_aml_model_name)
# Keep all context for hook
context = dict(self.env.context)
context.update({
"active_test":False
})

return {
"name": self._get_drilldown_action_name(arg),
"domain": domain,
Expand All @@ -925,7 +931,7 @@ def drilldown(self, arg):
"views": [[False, view] for view in views],
"view_mode": ",".join(view for view in views),
"target": "new" if self.drilldown_open_in_pop_up else "current",
"context": {"active_test": False},
"context": context,
}
else:
return False
Expand Down

0 comments on commit eaf6e72

Please sign in to comment.