diff --git a/addons/l10n_ar/report/invoice_report_view.xml b/addons/l10n_ar/report/invoice_report_view.xml index 1f760c0be4f..8e74fa67d71 100644 --- a/addons/l10n_ar/report/invoice_report_view.xml +++ b/addons/l10n_ar/report/invoice_report_view.xml @@ -9,6 +9,7 @@ + @@ -21,7 +22,7 @@ IIBB - Sales by jurisdiction account.invoice.report pivot - {'search_default_current': 1, 'search_default_customer': 1, 'search_default_with_document': 1, 'search_default_company': 1, 'search_default_groupby_l10n_ar_state_id': 2, 'search_default_groupby_account_id': 3, 'time_ranges': {'field': 'date', 'range': 'this_year'}} + {'search_default_current': 1, 'search_default_customer': 1, 'search_default_with_document': 1, 'search_default_company': 1, 'search_default_groupby_l10n_ar_state_id': 2, 'search_default_groupby_account_id': 3, 'search_default_filter_accounting_date_this_year': 1} IIBB - Purchases by jurisdiction account.invoice.report pivot - {'search_default_current': 1, 'search_default_supplier': 1, 'search_default_with_document': 1, 'search_default_company': 1, 'search_default_groupby_l10n_ar_state_id': 2, 'search_default_groupby_account_id': 3, 'time_ranges': {'field': 'date', 'range': 'this_year'}} + {'search_default_current': 1, 'search_default_supplier': 1, 'search_default_with_document': 1, 'search_default_company': 1, 'search_default_groupby_l10n_ar_state_id': 2, 'search_default_groupby_account_id': 3, 'search_default_filter_accounting_date_this_year': 1} + diff --git a/addons/sale/models/product_product.py b/addons/sale/models/product_product.py index d512457656a..4a519537146 100644 --- a/addons/sale/models/product_product.py +++ b/addons/sale/models/product_product.py @@ -50,7 +50,7 @@ class ProductProduct(models.Model): 'active_id': self._context.get('active_id'), 'search_default_Sales': 1, 'active_model': 'sale.report', - 'time_ranges': {'field': 'date', 'range': 'last_365_days'}, + 'search_default_filter_order_date': 1, } return action diff --git a/addons/sale/models/product_template.py b/addons/sale/models/product_template.py index 7cd6b8e3dbc..f95ca313b61 100644 --- a/addons/sale/models/product_template.py +++ b/addons/sale/models/product_template.py @@ -88,7 +88,7 @@ class ProductTemplate(models.Model): 'active_id': self._context.get('active_id'), 'active_model': 'sale.report', 'search_default_Sales': 1, - 'time_ranges': {'field': 'date', 'range': 'last_365_days'} + 'search_default_filter_order_date': 1, } return action diff --git a/addons/sale/report/sale_report_views.xml b/addons/sale/report/sale_report_views.xml index 946c0cb6cf9..2a607f0f906 100644 --- a/addons/sale/report/sale_report_views.xml +++ b/addons/sale/report/sale_report_views.xml @@ -54,6 +54,7 @@ +