From d980fbbb37476c8679e39334c38417d8243244bc Mon Sep 17 00:00:00 2001 From: qdp Date: Tue, 30 Sep 2008 13:38:05 +0200 Subject: [PATCH] *small improvmeents bzr revid: qdp@tinyerp.com-20080930113805-yoal4j3cxu6eey9y --- addons/account/account.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index b34cafe00df..e3d257b33fa 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1518,13 +1518,15 @@ account_subscription_line() class account_config_wizard(osv.osv_memory): _name = 'account.config.wizard' + def _get_charts(self, cr, uid, context): module_obj=self.pool.get('ir.module.module') - ids=module_obj.search(cr, uid, [('category_id', '=', 'Account charts'), ('state', '<>', 'installed')]) + ids=module_obj.search(cr, uid, [('category_id', '=', 'Account Charts'), ('state', '<>', 'installed')]) res=[(m.id, m.shortdesc) for m in module_obj.browse(cr, uid, ids)] res.append((-1, 'None')) res.sort(lambda x,y: cmp(x[1],y[1])) return res + _columns = { 'name':fields.char('Name', required=True, size=64, help="Name of the fiscal year as displayed on screens."), 'code':fields.char('Code', required=True, size=64, help="Name of the fiscal year as displayed in reports."), @@ -1538,7 +1540,8 @@ class account_config_wizard(osv.osv_memory): 'name': lambda *a: time.strftime('%Y'), 'date1': lambda *a: time.strftime('%Y-01-01'), 'date2': lambda *a: time.strftime('%Y-12-31'), - 'period':lambda *a:'month' + 'period':lambda *a:'month', + 'charts': lambda *a: -1, } def action_cancel(self,cr,uid,ids,conect=None): return {