From 878a554bdbba728ffe2d16fe014e5baf36d893d4 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Thu, 17 Mar 2011 11:24:58 +0100 Subject: [PATCH] [IMP] sort the analytic account by the name bzr revid: stephane@openerp.com-20110317102458-mdik9wimoxgo9m1j --- addons/analytic/analytic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py index 124607112a9..109b34590e7 100644 --- a/addons/analytic/analytic.py +++ b/addons/analytic/analytic.py @@ -186,7 +186,8 @@ class account_analytic_account(osv.osv): def check_recursion(self, cr, uid, ids, parent=None): return super(account_analytic_account, self)._check_recursion(cr, uid, ids, parent=parent) - _order = 'date_start desc,parent_id desc,code' + #_order = 'date_start desc,parent_id desc,code' + _order = 'name asc' _constraints = [ (check_recursion, 'Error! You can not create recursive analytic accounts.', ['parent_id']), (check_currency, 'Error! The currency has to be the same as the currency of the selected company', ['currency_id', 'company_id']),