From d45d0a840b96224363163db4692e128e78797359 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Fri, 3 Sep 2010 14:28:50 +0200 Subject: [PATCH] [IMP] account: removed the sequence field from account.account.type object bzr revid: qdp-launchpad@tinyerp.com-20100903122850-x52dsdj5pvctloky --- addons/account/account.py | 4 +--- addons/account/account_view.xml | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 652eddb4218..acbf65acf20 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -143,7 +143,6 @@ class account_account_type(osv.osv): _columns = { 'name': fields.char('Acc. Type Name', size=64, required=True, translate=True), 'code': fields.char('Code', size=32, required=True), - 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of account types."), 'close_method': fields.selection([('none', 'None'), ('balance', 'Balance'), ('detail', 'Detail'), ('unreconciled', 'Unreconciled')], 'Deferral Method', required=True), 'sign': fields.selection([(-1, 'Negative'), (1, 'Positive')], 'Sign on Reports', required=True, help='Allows you to change the sign of the balance amount displayed in the reports, so that you can see positive figures instead of negative ones in expenses accounts.'), 'report_type':fields.selection([ @@ -159,10 +158,9 @@ class account_account_type(osv.osv): } _defaults = { 'close_method': lambda *a: 'none', - 'sequence': lambda *a: 5, 'sign': lambda *a: 1, } - _order = "sequence" + _order = "code" def _check_recursion(self, cr, uid, ids): #TODO: Need to check for recusrion diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index ed16b5a49ad..8feb7e3ffdf 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -650,7 +650,6 @@ -