diff --git a/account_financial_report/README.rst b/account_financial_report/README.rst index 52fa7329..c67fc13e 100644 --- a/account_financial_report/README.rst +++ b/account_financial_report/README.rst @@ -111,6 +111,10 @@ Contributors * Alexis de Lattre * Mihai Fekete * Miquel Raïch +* `Tecnativa `__: + + * Pedro M. Baeza + * Sergio Teruel Much of the work in this module was done at a sprint in Sorrento, Italy in April 2016. diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 4bf40b51..a80ed871 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Financial Reports', - 'version': '12.0.1.2.1', + 'version': '12.0.1.2.2', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/readme/CONTRIBUTORS.rst b/account_financial_report/readme/CONTRIBUTORS.rst index 4e9f615c..4c3dafc7 100644 --- a/account_financial_report/readme/CONTRIBUTORS.rst +++ b/account_financial_report/readme/CONTRIBUTORS.rst @@ -15,6 +15,10 @@ * Alexis de Lattre * Mihai Fekete * Miquel Raïch +* `Tecnativa `__: + + * Pedro M. Baeza + * Sergio Teruel Much of the work in this module was done at a sprint in Sorrento, Italy in April 2016. diff --git a/account_financial_report/report/journal_ledger.py b/account_financial_report/report/journal_ledger.py index 8ce26caf..3e4d7293 100644 --- a/account_financial_report/report/journal_ledger.py +++ b/account_financial_report/report/journal_ledger.py @@ -613,6 +613,19 @@ class ReportJournalLedger(models.TransientModel): def get_html(self, given_context=None): return self._get_html() + @api.model + def _transient_vacuum(self, force=False): + """Remove journal ledger subtables first for avoiding a costly + ondelete operation. + """ + # Next 3 lines adapted from super method for mimicking behavior + cls = type(self) + if not force and (cls._transient_check_count < 21): + return True # no vacuum cleaning this time + self.env.cr.execute("DELETE FROM report_journal_ledger_move_line") + self.env.cr.execute("DELETE FROM report_journal_ledger_move") + return super(ReportJournalLedger, self)._transient_vacuum(force=force) + class ReportJournalLedgerJournal(models.TransientModel): diff --git a/account_financial_report/static/description/index.html b/account_financial_report/static/description/index.html index 6f9df266..8f939aa2 100644 --- a/account_financial_report/static/description/index.html +++ b/account_financial_report/static/description/index.html @@ -465,6 +465,11 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Alexis de Lattre <alexis@via.ecp.fr>
  • Mihai Fekete <feketemihai@gmail.com>
  • Miquel Raïch <miquel.raich@eficent.com>
  • +
  • Tecnativa:
      +
    • Pedro M. Baeza
    • +
    • Sergio Teruel
    • +
    +
  • Much of the work in this module was done at a sprint in Sorrento, Italy in April 2016.