From f1080a4eb25e24b81a6b66ffab7bd3854375f9b0 Mon Sep 17 00:00:00 2001 From: astirpe Date: Wed, 27 Apr 2016 10:44:10 +0200 Subject: [PATCH] Initial commit for wizard Aged Partner Balance --- account_financial_report_qweb/__openerp__.py | 2 ++ .../report_menus.xml | 11 ++++++++ .../wizard/__init__.py | 1 + .../wizard/aged_partner_balance_wizard.py | 24 ++++++++++++++++ .../aged_partner_balance_wizard_view.xml | 28 +++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 account_financial_report_qweb/report_menus.xml create mode 100644 account_financial_report_qweb/wizard/aged_partner_balance_wizard.py create mode 100644 account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml diff --git a/account_financial_report_qweb/__openerp__.py b/account_financial_report_qweb/__openerp__.py index 74186bfa..9c91f18f 100644 --- a/account_financial_report_qweb/__openerp__.py +++ b/account_financial_report_qweb/__openerp__.py @@ -16,7 +16,9 @@ 'account', ], 'data': [ + 'wizard/aged_partner_balance_wizard_view.xml', 'wizard/ledger_report_wizard_view.xml', + 'report_menus.xml', ], 'test': [ ], diff --git a/account_financial_report_qweb/report_menus.xml b/account_financial_report_qweb/report_menus.xml new file mode 100644 index 00000000..9d6e1677 --- /dev/null +++ b/account_financial_report_qweb/report_menus.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/account_financial_report_qweb/wizard/__init__.py b/account_financial_report_qweb/wizard/__init__.py index 87b64336..0b3093a7 100644 --- a/account_financial_report_qweb/wizard/__init__.py +++ b/account_financial_report_qweb/wizard/__init__.py @@ -2,4 +2,5 @@ # Author: Damien Crier # Copyright 2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import aged_partner_balance_wizard from . import ledger_report_wizard diff --git a/account_financial_report_qweb/wizard/aged_partner_balance_wizard.py b/account_financial_report_qweb/wizard/aged_partner_balance_wizard.py new file mode 100644 index 00000000..0ea2620e --- /dev/null +++ b/account_financial_report_qweb/wizard/aged_partner_balance_wizard.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Author: Damien Crier +# Copyright 2016 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import models, fields + + +class AccountAgedTrialBalance(models.TransientModel): + + _name = 'account.aged.trial.balance.wizard' + _description = 'Aged partner balanced' + + company_id = fields.Many2one( + comodel_name='res.company', + string='Company') + date_from = fields.Date('Date from') + date_to = fields.Date('Date to') + + partner_ids = fields.Many2many( + 'res.partner', + string='Filter on partner', + help='Only selected partners will be printed. ' + 'Leave empty to print all partners.') diff --git a/account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml b/account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml new file mode 100644 index 00000000..4e94769d --- /dev/null +++ b/account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml @@ -0,0 +1,28 @@ + + + + + + Aged Partner Balance Report + account.aged.trial.balance.wizard + +
+ + + +
+
+
+ + + Aged partner balance + ir.actions.act_window + account.aged.trial.balance.wizard + form + form + + new + +
+