diff --git a/account_financial_report_qweb/README.rst b/account_financial_report_qweb/README.rst index 428c5f2f..fd9a6bb4 100644 --- a/account_financial_report_qweb/README.rst +++ b/account_financial_report_qweb/README.rst @@ -101,6 +101,7 @@ Contributors * Alexis de Lattre * Mihai Fekete * Benjamin Willig +* 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_qweb/readme/CONTRIBUTORS.rst b/account_financial_report_qweb/readme/CONTRIBUTORS.rst index 243b6b80..869b6c5e 100644 --- a/account_financial_report_qweb/readme/CONTRIBUTORS.rst +++ b/account_financial_report_qweb/readme/CONTRIBUTORS.rst @@ -15,6 +15,7 @@ * Alexis de Lattre * Mihai Fekete * Benjamin Willig +* 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_qweb/report/abstract_report_xlsx.py b/account_financial_report_qweb/report/abstract_report_xlsx.py index 275201f2..6d5f3152 100644 --- a/account_financial_report_qweb/report/abstract_report_xlsx.py +++ b/account_financial_report_qweb/report/abstract_report_xlsx.py @@ -43,7 +43,7 @@ class AbstractReportXslx(ReportXlsx): 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) @@ -360,7 +360,7 @@ class AbstractReportXslx(ReportXlsx): def _generate_report_content(self, workbook, report): pass - 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_qweb/report/aged_partner_balance_xlsx.py b/account_financial_report_qweb/report/aged_partner_balance_xlsx.py index ab23da2b..0cdf9e8c 100644 --- a/account_financial_report_qweb/report/aged_partner_balance_xlsx.py +++ b/account_financial_report_qweb/report/aged_partner_balance_xlsx.py @@ -15,8 +15,10 @@ class AgedPartnerBalanceXslx(abstract_report_xlsx.AbstractReportXslx): super(AgedPartnerBalanceXslx, self).__init__( name, table, rml, parser, header, store) - 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_qweb/report/general_ledger_xlsx.py b/account_financial_report_qweb/report/general_ledger_xlsx.py index e6936e52..a0a687a4 100644 --- a/account_financial_report_qweb/report/general_ledger_xlsx.py +++ b/account_financial_report_qweb/report/general_ledger_xlsx.py @@ -16,8 +16,10 @@ class GeneralLedgerXslx(abstract_report_xlsx.AbstractReportXslx): super(GeneralLedgerXslx, self).__init__( name, table, rml, parser, header, store) - 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_qweb/report/journal_report_xlsx.py b/account_financial_report_qweb/report/journal_report_xlsx.py index 0ed64ad3..eb693c05 100644 --- a/account_financial_report_qweb/report/journal_report_xlsx.py +++ b/account_financial_report_qweb/report/journal_report_xlsx.py @@ -17,8 +17,10 @@ class JournalXslx(abstract_report_xlsx.AbstractReportXslx): super(JournalXslx, self).__init__( name, table, rml, parser, header, store) - def _get_report_name(self): - return _('Journal') + 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_qweb/report/open_items_xlsx.py b/account_financial_report_qweb/report/open_items_xlsx.py index 6a4e1a3e..b32a7ea2 100644 --- a/account_financial_report_qweb/report/open_items_xlsx.py +++ b/account_financial_report_qweb/report/open_items_xlsx.py @@ -15,8 +15,10 @@ class OpenItemsXslx(abstract_report_xlsx.AbstractReportXslx): super(OpenItemsXslx, self).__init__( name, table, rml, parser, header, store) - 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_qweb/report/templates/aged_partner_balance.xml b/account_financial_report_qweb/report/templates/aged_partner_balance.xml index d4fb5ede..885008f7 100644 --- a/account_financial_report_qweb/report/templates/aged_partner_balance.xml +++ b/account_financial_report_qweb/report/templates/aged_partner_balance.xml @@ -16,10 +16,13 @@ - Aged Partner Balance + Aged Partner Balance - - -
+
+
+

+

diff --git a/account_financial_report_qweb/report/templates/general_ledger.xml b/account_financial_report_qweb/report/templates/general_ledger.xml index 3d9ebb44..95da78e8 100644 --- a/account_financial_report_qweb/report/templates/general_ledger.xml +++ b/account_financial_report_qweb/report/templates/general_ledger.xml @@ -18,12 +18,14 @@ - General Ledger + General Ledger - - -
+
+
+

+

-
diff --git a/account_financial_report_qweb/report/templates/journal.xml b/account_financial_report_qweb/report/templates/journal.xml index 8d035ed0..545c8a42 100644 --- a/account_financial_report_qweb/report/templates/journal.xml +++ b/account_financial_report_qweb/report/templates/journal.xml @@ -12,12 +12,15 @@