[IMP]:installation done wizard
bzr revid: nch@tinyerp.com-20100427101724-z69y791xfbrfpl58
This commit is contained in:
parent
abc88397bd
commit
f5f64e4dc6
|
@ -23,8 +23,9 @@ import installer
|
||||||
import todo
|
import todo
|
||||||
import wizard
|
import wizard
|
||||||
|
|
||||||
from osv import osv
|
from osv import fields, osv
|
||||||
import netsvc
|
import netsvc
|
||||||
|
from tools.translate import _
|
||||||
|
|
||||||
class base_setup_config_choice(osv.osv_memory):
|
class base_setup_config_choice(osv.osv_memory):
|
||||||
"""
|
"""
|
||||||
|
@ -32,6 +33,21 @@ class base_setup_config_choice(osv.osv_memory):
|
||||||
_name = 'base.setup.config'
|
_name = 'base.setup.config'
|
||||||
logger = netsvc.Logger()
|
logger = netsvc.Logger()
|
||||||
|
|
||||||
|
def get_users(self, cr, uid, context={}):
|
||||||
|
user_obj = self.pool.get('res.users')
|
||||||
|
user_ids = user_obj.search(cr, uid, [])
|
||||||
|
users = user_obj.browse(cr, uid, user_ids)
|
||||||
|
user_str = '\n'.join(map(lambda x: ' - %s: %s / %s' % (x.name, x.login, x.password), users))
|
||||||
|
return _('The following users have been installed on your database: \n')+ user_str
|
||||||
|
|
||||||
|
_columns = {
|
||||||
|
'installed_users':fields.text('Installed Users')
|
||||||
|
}
|
||||||
|
|
||||||
|
_defaults = {
|
||||||
|
'installed_users':get_users
|
||||||
|
}
|
||||||
|
|
||||||
def set_default_menu(self, cr, uid, menu, context=None):
|
def set_default_menu(self, cr, uid, menu, context=None):
|
||||||
user = self.pool.get('res.users')\
|
user = self.pool.get('res.users')\
|
||||||
.browse(cr, uid, uid, context=context)
|
.browse(cr, uid, uid, context=context)
|
||||||
|
|
|
@ -13,8 +13,9 @@
|
||||||
<separator colspan="4" string="Installation Done"/>
|
<separator colspan="4" string="Installation Done"/>
|
||||||
<label align="0.0" colspan="4"
|
<label align="0.0" colspan="4"
|
||||||
string="Your new database is now fully installed."/>
|
string="Your new database is now fully installed."/>
|
||||||
|
<field name="installed_users" nolabel= "1" colspan="4"/>
|
||||||
<label align="0.0" colspan="4"
|
<label align="0.0" colspan="4"
|
||||||
string="You can start configuring the system or connect directly to the database using the default setup."/>
|
string="You can start configuring the system or connect directly to the database as an administrator."/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<separator string="" colspan="4"/>
|
<separator string="" colspan="4"/>
|
||||||
|
|
Loading…
Reference in New Issue