From aeedeea35046ee5c00d7e7ee395471da05088fbd Mon Sep 17 00:00:00 2001 From: Damien Crier Date: Wed, 27 Apr 2016 09:30:31 +0200 Subject: [PATCH] [ADD] partner ledger wizard --- .../wizard/ledger_report_wizard.py | 11 ++++ .../wizard/ledger_report_wizard_view.xml | 51 +++++++++++++++++-- 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/account_financial_report_qweb/wizard/ledger_report_wizard.py b/account_financial_report_qweb/wizard/ledger_report_wizard.py index c17142f5..73f410d1 100644 --- a/account_financial_report_qweb/wizard/ledger_report_wizard.py +++ b/account_financial_report_qweb/wizard/ledger_report_wizard.py @@ -27,6 +27,17 @@ class LedgerReportWizard(models.TransientModel): default=False) centralize = fields.Boolean(string='Activate centralization', default=False) + result_selection = fields.Selection( + [('customer', 'Receivable Accounts'), + ('supplier', 'Payable Accounts'), + ('customer_supplier', 'Receivable and Payable Accounts') + ], + string="Partner's", + default='customer') + partner_ids = fields.Many2many( + comodel_name='res.partner', + string='Filter partners', + ) @api.multi def check_report(self): diff --git a/account_financial_report_qweb/wizard/ledger_report_wizard_view.xml b/account_financial_report_qweb/wizard/ledger_report_wizard_view.xml index daa5b193..27cca772 100644 --- a/account_financial_report_qweb/wizard/ledger_report_wizard_view.xml +++ b/account_financial_report_qweb/wizard/ledger_report_wizard_view.xml @@ -2,6 +2,7 @@ + Ledger ledger.report.wizard @@ -46,9 +47,53 @@ parent="account.menu_finance_legal_statement" action="action_ledger_report_wizard" id="menu_ledger_report_wizard"/> - + + + + + Partner Ledger + ledger.report.wizard + +
+ + + + + + + + + + + + + + +
+ + + Partner Ledger + ir.actions.act_window + ledger.report.wizard + form + form + + new + + +