From 19380a87a08ba829708b150845e8db947ca61347 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 27 Aug 2010 16:00:13 +0530 Subject: [PATCH] [IMP] Tax chart by wizard: * the menuitem Accounting \ Chart \ Chart of taxes, have to ask for a period, by default filled with the current period. Then opening the chart of tax using that period in context to have the sum period and sum years completed. It should also ask if we want to include the draft account moves or not * the company_id field should be hidden in that chart, if the user doesn't have the useabilty / multi company group * the chart should display the period sum before the year sum bzr revid: mra@mra-laptop-20100827103013-ppj8y6loadpw8oz4 --- addons/account/__openerp__.py | 1 + addons/account/account.py | 2 +- addons/account/account_view.xml | 8 +- addons/account/wizard/__init__.py | 1 + addons/account/wizard/account_tax_chart.py | 78 +++++++++++++++++++ .../account/wizard/account_tax_chart_view.xml | 45 +++++++++++ 6 files changed, 131 insertions(+), 4 deletions(-) create mode 100644 addons/account/wizard/account_tax_chart.py create mode 100644 addons/account/wizard/account_tax_chart_view.xml diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 96412077840..6f3675392e0 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -60,6 +60,7 @@ module named account_voucher. 'wizard/account_period_close_view.xml', 'wizard/account_fiscalyear_close_state.xml', 'wizard/account_chart_view.xml', + 'wizard/account_tax_chart_view.xml', 'wizard/account_move_journal_view.xml', 'wizard/account_move_line_reconcile_select_view.xml', 'wizard/account_open_closed_fiscalyear_view.xml', diff --git a/addons/account/account.py b/addons/account/account.py index f0884044fcf..682e9583e33 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -835,7 +835,7 @@ class account_period(osv.osv): 'company_id': fields.related('fiscalyear_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True) } _defaults = { - 'state': lambda *a: 'draft', + 'state': 'draft', } _order = "date_start" diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 32989538ebe..49a251175cd 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -710,9 +710,9 @@ - - + + @@ -857,11 +857,13 @@ Chart of Taxes is a tree view reflecting the structure of the Tax Cases (or tax codes) and shows the current tax situation. The tax chart represents the amount of each area of the tax declaration for your country. It’s presented in a hierarchical structure, which can be modified to fit your needs. + +