Browse Source

[FIX] refresh method is deprecated (in fact, it just calls invalidate_cache)

pull/390/head
Simone Rubino 7 years ago
parent
commit
adae940f33
  1. 2
      account_financial_report_qweb/report/aged_partner_balance.py
  2. 2
      account_financial_report_qweb/report/general_ledger.py
  3. 2
      account_financial_report_qweb/report/open_items.py
  4. 2
      account_financial_report_qweb/report/trial_balance.py

2
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"""

2
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):

2
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."""

2
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"""

Loading…
Cancel
Save