[FIX]: make inactive complete demo chart of account

bzr revid: mga@tinyerp.com-20100813210041-a5lbu9rj733if5sk
This commit is contained in:
Mantavya Gajjar 2010-08-14 02:30:41 +05:30
parent 237c2a7240
commit 2eb60e24ba
1 changed files with 2 additions and 3 deletions

View File

@ -138,7 +138,6 @@ class account_payment_term_line(osv.osv):
account_payment_term_line()
class account_account_type(osv.osv):
_name = "account.account.type"
_description = "Account Type"
@ -2783,9 +2782,9 @@ class wizard_multi_charts_accounts(osv.osv_memory):
if data_id:
data = data_pool.browse(cr, uid, data_id[0])
account_id = data.res_id
acc_ids = obj_acc._get_children_and_consol(cr, uid, [account_id])
if account_id:
cr.execute("update account_account set active='f' where id=%s" % (account_id))
cr.execute("update account_account set active='f' where id in " + str(tuple(acc_ids)))
wizard_multi_charts_accounts()
class account_bank_accounts_wizard(osv.osv_memory):