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 89f96ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,10 @@ 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 +929,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 89f96ed

Please sign in to comment.