From 6da812ca4e2294fbe4f4648dd1eba9f44328921d Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Fri, 10 Sep 2010 17:58:53 +0200 Subject: [PATCH] [IMP] account: accounting entries analysis improvements (usability) bzr revid: qdp-launchpad@tinyerp.com-20100910155853-h4y312ldela1ldxb --- .../account/report/account_entries_report.py | 13 ++++---- .../report/account_entries_report_view.xml | 32 +++++++++---------- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/addons/account/report/account_entries_report.py b/addons/account/report/account_entries_report.py index 1047453289c..acf15ce53c1 100644 --- a/addons/account/report/account_entries_report.py +++ b/addons/account/report/account_entries_report.py @@ -47,10 +47,8 @@ class account_entries_report(osv.osv): 'journal_id': fields.many2one('account.journal', 'Journal', readonly=True), 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', readonly=True), 'product_id': fields.many2one('product.product', 'Product', readonly=True), - 'state': fields.selection([('draft','Draft'), ('posted','Posted')], 'State', readonly=True, - help='When new account move is created the state will be \'Draft\'. When all the payments are done it will be in \'Posted\' state.'), - 'state_2': fields.selection([('draft','Draft'), ('valid','Valid')], 'State of Move Line', readonly=True, - help='When new move line is created the state will be \'Draft\'.\n* When all the payments are done it will be in \'Valid\' state.'), + 'move_state': fields.selection([('draft','Unposted'), ('posted','Posted')], 'State', readonly=True), + 'move_line_state': fields.selection([('draft','Unbalanced'), ('valid','Valid')], 'State of Move Line', readonly=True), 'reconcile_id': fields.many2one('account.move.reconcile', readonly=True), 'partner_id': fields.many2one('res.partner','Partner', readonly=True), 'analytic_account_id' : fields.many2one('account.analytic.account', 'Analytic Account', readonly=True), @@ -59,9 +57,10 @@ class account_entries_report(osv.osv): 'type': fields.selection([ ('receivable', 'Receivable'), ('payable', 'Payable'), + ('cash', 'Cash'), ('view', 'View'), ('consolidation', 'Consolidation'), - ('other', 'Others'), + ('other', 'Regular'), ('closed', 'Closed'), ], 'Internal Type', readonly=True, help="This type is used to differentiate types with "\ "special effects in OpenERP: view can not have entries, consolidation are accounts that "\ @@ -116,8 +115,8 @@ class account_entries_report(osv.osv): l.date_maturity as date_maturity, l.date_created as date_created, am.ref as ref, - am.state as state, - l.state as state_2, + am.state as move_state, + l.state as move_line_state, l.reconcile_id as reconcile_id, to_char(am.date, 'YYYY') as year, to_char(am.date, 'MM') as month, diff --git a/addons/account/report/account_entries_report_view.xml b/addons/account/report/account_entries_report_view.xml index 1cefe896b67..046eb8852d7 100644 --- a/addons/account/report/account_entries_report_view.xml +++ b/addons/account/report/account_entries_report_view.xml @@ -6,7 +6,7 @@ account.entries.report tree - + @@ -16,7 +16,7 @@ - + @@ -52,20 +52,20 @@ - - + + help="Entries with period in current period"/> - - + + - - + + @@ -73,16 +73,15 @@ - + + + + + - - - - - @@ -99,7 +98,6 @@ -