Skip to content

Commit

Permalink
[FIX] mis_builder: Add analytic_domain to report instance only if it …
Browse files Browse the repository at this point in the history
…is set

TT50696
  • Loading branch information
victoralmau committed Oct 1, 2024
1 parent 1409902 commit a71f286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mis_builder/models/mis_report_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ def _get_filter_domain(self, source_aml_model_name):
)
)
# report-level analytic domain filter
domain.extend(ast.literal_eval(self.analytic_domain))
if self.analytic_domain:
domain.extend(ast.literal_eval(self.analytic_domain))
# contextual analytic domain filter
domain.extend(self.env.context.get("mis_analytic_domain", []))
return domain
Expand Down

0 comments on commit a71f286

Please sign in to comment.