From 5169b50efece9ca66aa486c493a43dc1d34abdbc Mon Sep 17 00:00:00 2001 From: Olivier Colson Date: Mon, 6 Mar 2017 16:40:33 +0100 Subject: [PATCH] [IMP] l10n_ch Add a new button to generate the ISR and remove the "double generation" of reports on 'Print invoice' button. This modification brings the code back to its original version and hence fixes the javascript bugs that occured with less than 3 workers running on the server and with Google Chrome when triggering multiple downloads simultaneously. [ADD] account Add a identifier to the 'register payment' button in order to reference it more easily and add the 'Print ISR' next to it. [FIX] l10n_ch The module did not install itself anymore, an import was missing. Report generation was crashing due to a function's suppression. --- addons/account/views/account_invoice_view.xml | 2 +- addons/l10n_ch/__init__.py | 2 + addons/l10n_ch/models/__init__.py | 1 + addons/l10n_ch/models/account_invoice.py | 47 +++++++++++++++---- addons/l10n_ch/models/mail_compose_message.py | 25 ++++++++++ addons/l10n_ch/tests/test_l10n_ch_isr.py | 22 ++++----- addons/l10n_ch/views/account_invoice_view.xml | 30 ++++++++++++ 7 files changed, 107 insertions(+), 22 deletions(-) create mode 100644 addons/l10n_ch/models/mail_compose_message.py diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index d09d1d7cd01..41f7de14856 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -352,7 +352,7 @@