Browse Source
Fine tune layout bank reconciliation report
Fine tune layout bank reconciliation report
Report is technically linked to wizard, not to account.journalpull/322/head
Alexis de Lattre
7 years ago
8 changed files with 44 additions and 59 deletions
-
2account_bank_reconciliation_summary_xlsx/__manifest__.py
-
1account_bank_reconciliation_summary_xlsx/models/__init__.py
-
22account_bank_reconciliation_summary_xlsx/models/account_bank_statement.py
-
61account_bank_reconciliation_summary_xlsx/report/bank_reconciliation_xlsx.py
-
2account_bank_reconciliation_summary_xlsx/report/report.xml
-
4account_bank_reconciliation_summary_xlsx/views/account_bank_statement.xml
-
8account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard.py
-
3account_bank_reconciliation_summary_xlsx/wizard/bank_reconciliation_report_wizard_view.xml
@ -1,4 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from . import account_bank_statement |
|||
from . import account_move_line |
@ -1,22 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2017 Akretion France (Alexis de Lattre <alexis.delattre@akretion.com>) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import models |
|||
|
|||
|
|||
class AccountBankStatement(models.Model): |
|||
_inherit = 'account.bank.statement' |
|||
|
|||
def print_reconciliation_xlsx(self): |
|||
self.ensure_one() |
|||
action = { |
|||
'type': 'ir.actions.report.xml', |
|||
'report_name': 'bank.reconciliation.xlsx', |
|||
'datas': { |
|||
'model': 'account.journal', |
|||
'ids': [self.journal_id.id], |
|||
}, |
|||
'context': self._context, |
|||
} |
|||
return action |
Write
Preview
Loading…
Cancel
Save
Reference in new issue