*small improvmeents
bzr revid: qdp@tinyerp.com-20080930113805-yoal4j3cxu6eey9y
This commit is contained in:
parent
16ab1664c1
commit
d980fbbb37
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue