[FIX] creation of db with no demo data
lp bug: https://launchpad.net/bugs/820812 fixed bzr revid: xmo@openerp.com-20110804103725-9o6uuvg5zb15rp6h
This commit is contained in:
parent
fd573bc0d9
commit
0094e828b9
|
@ -178,9 +178,13 @@ class Database(openerpweb.Controller):
|
|||
def create(self, req, fields):
|
||||
|
||||
params = dict(map(operator.itemgetter('name', 'value'), fields))
|
||||
create_attrs = operator.itemgetter(
|
||||
'super_admin_pwd', 'db_name', 'demo_data', 'db_lang', 'create_admin_pwd')(
|
||||
params)
|
||||
create_attrs = (
|
||||
params['super_admin_pwd'],
|
||||
params['db_name'],
|
||||
bool(params.get('demo_data')),
|
||||
params['db_lang'],
|
||||
params['create_admin_pwd']
|
||||
)
|
||||
|
||||
try:
|
||||
return req.session.proxy("db").create(*create_attrs)
|
||||
|
|
Loading…
Reference in New Issue