Skip to content

Commit

Permalink
create database service forward compatible with Odoo v8
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jan 13, 2015
1 parent 6977988 commit 73dcb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ooor/services.rb
Expand Up @@ -66,7 +66,7 @@ class DbService < Service

def create(password=@session.config[:db_password], db_name='ooor_test', demo=true, lang='en_US', user_password=@session.config[:password] || 'admin')
@session.logger.info "creating database #{db_name} this may take a while..."
process_id = @session.get_client(:xml, @session.base_url + "/db").call("create", password, db_name, demo, lang, user_password)
process_id = @session.get_client(:xml, @session.base_url + "/db").call("create_database", password, db_name, demo, lang, user_password)
sleep(2)
while get_progress(password, process_id)[0] != 1
@session.logger.info "..."
Expand Down

0 comments on commit 73dcb13

Please sign in to comment.