From d258425749118b19bc9addcd26ed17a67956f386 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Thu, 15 Jul 2010 17:41:52 +0530 Subject: [PATCH] [FIX]: account: fix account chart installation wizard [IMP]: account: improvement in view [FIX]: account: add comments on the the wizards bzr revid: mga@tinyerp.com-20100715121152-m0rys1jxwip4fzrx --- addons/account/account.py | 9 ++ addons/account/account_invoice_view.xml | 2 +- addons/account/board_account_view.xml | 12 ++- addons/account/wizard/account_pl_report.py | 2 +- .../account/wizard/account_pl_report_view.xml | 2 + .../wizard/account_print_journal_view.xml | 82 +++++++++---------- 6 files changed, 62 insertions(+), 47 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 6aa47551a98..45d3cb4377c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2684,6 +2684,15 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'position_id' : new_fp, } obj_ac_fp.create(cr, uid, vals_acc) + + #fially inactive the demo chart of accounts + data_id = data_pool.search(cr, uid, [('model','=','account.account'), ('name','=','chart0')]) + if data_id: + data = data_pool.browse(cr, uid, data_id[0]) + account_id = data.res_id + if account_id: + cr.execute("update account_account set active='f' where id=%s" % (account_id)) + wizard_multi_charts_accounts() class account_bank_accounts_wizard(osv.osv_memory): diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 6fe0182b584..e9c66c3036d 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -207,7 +207,7 @@