From adae940f3398101c4e119d276497877842279d7c Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Mon, 26 Feb 2018 17:51:33 +0100 Subject: [PATCH] [FIX] refresh method is deprecated (in fact, it just calls invalidate_cache) --- account_financial_report_qweb/report/aged_partner_balance.py | 2 +- account_financial_report_qweb/report/general_ledger.py | 2 +- account_financial_report_qweb/report/open_items.py | 2 +- account_financial_report_qweb/report/trial_balance.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/account_financial_report_qweb/report/aged_partner_balance.py b/account_financial_report_qweb/report/aged_partner_balance.py index 80be5b1c..aabf09ec 100644 --- a/account_financial_report_qweb/report/aged_partner_balance.py +++ b/account_financial_report_qweb/report/aged_partner_balance.py @@ -227,7 +227,7 @@ class AgedPartnerBalanceReportCompute(models.TransientModel): self._inject_move_line_values(only_empty_partner_line=True) self._compute_accounts_cumul() # Refresh cache because all data are computed with SQL requests - self.refresh() + self.invalidate_cache() def _inject_account_values(self): """Inject report values for report_aged_partner_balance_qweb_account""" diff --git a/account_financial_report_qweb/report/general_ledger.py b/account_financial_report_qweb/report/general_ledger.py index 78023c63..0d1e4fe0 100644 --- a/account_financial_report_qweb/report/general_ledger.py +++ b/account_financial_report_qweb/report/general_ledger.py @@ -261,7 +261,7 @@ class GeneralLedgerReportCompute(models.TransientModel): self._compute_has_second_currency() # Refresh cache because all data are computed with SQL requests - self.refresh() + self.invalidate_cache() def _get_account_sub_subquery_sum_amounts( self, include_initial_balance, date_included): diff --git a/account_financial_report_qweb/report/open_items.py b/account_financial_report_qweb/report/open_items.py index 707c2a15..c4b62247 100644 --- a/account_financial_report_qweb/report/open_items.py +++ b/account_financial_report_qweb/report/open_items.py @@ -170,7 +170,7 @@ class OpenItemsReportCompute(models.TransientModel): # Compute display flag self._compute_has_second_currency() # Refresh cache because all data are computed with SQL requests - self.refresh() + self.invalidate_cache() def _inject_account_values(self): """Inject report values for report_open_items_qweb_account.""" diff --git a/account_financial_report_qweb/report/trial_balance.py b/account_financial_report_qweb/report/trial_balance.py index c929601e..558db8ef 100644 --- a/account_financial_report_qweb/report/trial_balance.py +++ b/account_financial_report_qweb/report/trial_balance.py @@ -165,7 +165,7 @@ class TrialBalanceReportCompute(models.TransientModel): if self.show_partner_details: self._inject_partner_values() # Refresh cache because all data are computed with SQL requests - self.refresh() + self.invalidate_cache() def _inject_account_values(self): """Inject report values for report_trial_balance_qweb_account"""