diff --git a/account_financial_report/README.rst b/account_financial_report/README.rst index cf1a8f08..9f04d5e8 100644 --- a/account_financial_report/README.rst +++ b/account_financial_report/README.rst @@ -97,6 +97,7 @@ Contributors * Akim Juillerat * Alexis de Lattre * Mihai Fekete +* Miquel Raïch 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 cf1dfe4b..5ddf2a5c 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': '11.0.2.3.1', + 'version': '11.0.2.4.0', '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 4604fe42..10431f9e 100644 --- a/account_financial_report/readme/CONTRIBUTORS.rst +++ b/account_financial_report/readme/CONTRIBUTORS.rst @@ -14,6 +14,7 @@ * Akim Juillerat * Alexis de Lattre * Mihai Fekete +* Miquel Raïch 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/abstract_report_xlsx.py b/account_financial_report/report/abstract_report_xlsx.py index 4fe4933c..5d53b3fb 100644 --- a/account_financial_report/report/abstract_report_xlsx.py +++ b/account_financial_report/report/abstract_report_xlsx.py @@ -41,7 +41,7 @@ class AbstractReportXslx(models.AbstractModel): self._define_formats(workbook) - report_name = self._get_report_name() + report_name = self._get_report_name(objects) report_footer = self._get_report_footer() filters = self._get_report_filters(report) self.columns = self._get_report_columns(report) @@ -349,7 +349,7 @@ class AbstractReportXslx(models.AbstractModel): """ raise NotImplementedError() - def _get_report_name(self): + def _get_report_name(self, objects): """ Allow to define the report name. Report name will be used as sheet name and as report title. diff --git a/account_financial_report/report/aged_partner_balance_xlsx.py b/account_financial_report/report/aged_partner_balance_xlsx.py index fee5540e..31362c2a 100644 --- a/account_financial_report/report/aged_partner_balance_xlsx.py +++ b/account_financial_report/report/aged_partner_balance_xlsx.py @@ -10,8 +10,10 @@ class AgedPartnerBalanceXslx(models.AbstractModel): _name = 'report.a_f_r.report_aged_partner_balance_xlsx' _inherit = 'report.account_financial_report.abstract_report_xlsx' - def _get_report_name(self): - return _('Aged Partner Balance') + def _get_report_name(self, objects): + report = objects + return _('Aged Partner Balance - %s - %s') % ( + report.company_id.name, report.company_id.currency_id.name) def _get_report_columns(self, report): if not report.show_move_line_details: diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index d5a20d42..f722d154 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -11,8 +11,10 @@ class GeneralLedgerXslx(models.AbstractModel): _name = 'report.a_f_r.report_general_ledger_xlsx' _inherit = 'report.account_financial_report.abstract_report_xlsx' - def _get_report_name(self): - return _('General Ledger') + def _get_report_name(self, objects): + report = objects + return _('General Ledger - %s - %s') % ( + report.company_id.name, report.company_id.currency_id.name) def _get_report_columns(self, report): res = { diff --git a/account_financial_report/report/journal_ledger_xlsx.py b/account_financial_report/report/journal_ledger_xlsx.py index 26d1e1f6..e9a7351e 100644 --- a/account_financial_report/report/journal_ledger_xlsx.py +++ b/account_financial_report/report/journal_ledger_xlsx.py @@ -10,8 +10,10 @@ class JournalLedgerXslx(models.AbstractModel): _name = 'report.a_f_r.report_journal_ledger_xlsx' _inherit = 'report.account_financial_report.abstract_report_xlsx' - def _get_report_name(self): - return _('Journal Ledger') + def _get_report_name(self, objects): + report = objects + return _('Journal Ledger - %s - %s') % ( + report.company_id.name, report.company_id.currency_id.name) def _get_report_columns(self, report): columns = [ diff --git a/account_financial_report/report/open_items_xlsx.py b/account_financial_report/report/open_items_xlsx.py index cbe663fa..4a82a27b 100644 --- a/account_financial_report/report/open_items_xlsx.py +++ b/account_financial_report/report/open_items_xlsx.py @@ -9,8 +9,10 @@ class OpenItemsXslx(models.AbstractModel): _name = 'report.a_f_r.report_open_items_xlsx' _inherit = 'report.account_financial_report.abstract_report_xlsx' - def _get_report_name(self): - return _('Open Items') + def _get_report_name(self, objects): + report = objects + return _('Open Items - %s - %s') % ( + report.company_id.name, report.company_id.currency_id.name) def _get_report_columns(self, report): res = { diff --git a/account_financial_report/report/templates/aged_partner_balance.xml b/account_financial_report/report/templates/aged_partner_balance.xml index 53b01be7..ef00fe00 100644 --- a/account_financial_report/report/templates/aged_partner_balance.xml +++ b/account_financial_report/report/templates/aged_partner_balance.xml @@ -14,12 +14,13 @@