Browse Source

Initial commit for wizard Aged Partner Balance

pull/196/head
astirpe 9 years ago
committed by Leonardo Pistone
parent
commit
352eebac9a
  1. 2
      account_financial_report_qweb/__openerp__.py
  2. 11
      account_financial_report_qweb/report_menus.xml
  3. 1
      account_financial_report_qweb/wizard/__init__.py
  4. 24
      account_financial_report_qweb/wizard/aged_partner_balance_wizard.py
  5. 28
      account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml

2
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': [
],

11
account_financial_report_qweb/report_menus.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem
id='account.menu_aged_partner_balance'
parent='account.menu_finance_legal_statement'
action='action_account_aged_trial_balance_wizard' />
</data>
</openerp>

1
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

24
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.')

28
account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="account_aged_trial_balance_wizard" model="ir.ui.view">
<field name="name">Aged Partner Balance Report</field>
<field name="model">account.aged.trial.balance.wizard</field>
<field name="arch" type="xml">
<form>
<group name="main_info">
<field name="company_id"/>
</group>
</form>
</field>
</record>
<record id="action_account_aged_trial_balance_wizard"
model="ir.actions.act_window">
<field name="name">Aged partner balance</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.aged.trial.balance.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="account_aged_trial_balance_wizard"/>
<field name="target">new</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save