1
# -*- coding: utf-8 -*-
3
from osv import fields, osv
6
class account_installer(osv.osv_memory):
7
_name = 'account.installer'
8
_inherit = 'account.installer'
11
'charts': fields.selection([('msf_chart_of_account', 'MSF Chart Of Account'), ('None', 'None')], 'Chart of Accounts',
13
help="Installs localized accounting charts to match as closely as "
14
"possible the accounting needs of your company based on your "
18
def _get_default_charts(self, cr, uid, context=None):
19
if tools.config.options.get('additional_xml'):
20
return 'msf_chart_of_account'
24
'charts': _get_default_charts
27
def execute(self, cr, uid, ids, context=None):
28
return super(account_installer, self).execute(cr, uid, ids, context)