Skip to content

Commit

Permalink
[16.0][ADD] mis_builder: add option on report instance to drilldown i…
Browse files Browse the repository at this point in the history
…n pop
  • Loading branch information
AnizR committed Aug 22, 2024
1 parent d62e51f commit 660a144
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mis_builder/models/mis_report_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ def _compute_pivot_date(self):
string="Filter box search view",
help="Search view to customize the filter box in the report widget.",
)
drilldown_open_in_pop_up = fields.Boolean(
string="Drilldown in a pop up window",
)

@api.depends("report_id.move_lines_source")
def _compute_widget_search_view_id(self):
Expand Down Expand Up @@ -902,7 +905,7 @@ def drilldown(self, arg):
"res_model": period.source_aml_model_name,
"views": [[False, "list"], [False, "form"]],
"view_mode": "list",
"target": "current",
"target": "new" if self.drilldown_open_in_pop_up else "current",
"context": {"active_test": False},
}
else:
Expand Down
5 changes: 5 additions & 0 deletions mis_builder/views/mis_report_instance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@
<field name="widget_show_pivot_date" />
</group>
</page>
<page string="Drilldown">
<group name="drilldown">
<field name="drilldown_open_in_pop_up"/>
</group>
</page>
</notebook>
</sheet>
</form>
Expand Down

0 comments on commit 660a144

Please sign in to comment.