diff --git a/addons/account/models/account_report.py b/addons/account/models/account_report.py index 7a5125614cb..74987a0b98e 100644 --- a/addons/account/models/account_report.py +++ b/addons/account/models/account_report.py @@ -127,6 +127,10 @@ class AccountReport(models.Model): string="Filter Multivat", compute=lambda x: x._compute_report_option_filter('filter_fiscal_position'), readonly=False, store=True, depends=['root_report_id', 'section_main_report_ids'], ) + filter_aml_ir_filters = fields.Boolean( + string="Favorite Filters", help="If activated, user-defined filters on journal items can be selected on this report", + compute=lambda x: x._compute_report_option_filter('filter_aml_ir_filters'), readonly=False, store=True, depends=['root_report_id', 'section_main_report_ids'], + ) def _compute_report_option_filter(self, field_name, default_value=False): # We don't depend on the different filter fields on the root report, as we don't want a manual change on it to be reflected on all the reports