Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rvalyi/324578 to your computer and use it in GitHub Desktop.
Save rvalyi/324578 to your computer and use it in GitHub Desktop.
require "rubygems"
require "ooor"
@ooor = Ooor.new(:url => 'http://localhost:8069/xmlrpc', :username => 'admin', :password => 'admin')
@ooor.create("admin", "ooor_test") #will take some time, OOOR will automatically poll the server for notification
manufacturing_module_id = IrModuleModule.search([['name','=', 'profile_manufacturing']])[0]
w = @ooor.old_wizard_step('base_setup.base_setup')
w.company(:profile => manufacturing_module_id)
w.update(:name => 'Akretion.com', :state_id => false)
w.finish
@ooor.load_models #will create AccountConfigWizard and WizardMultiChartsAccounts proxies
chart_module_id = IrModuleModule.search([['category_id', '=', 'Account Charts'], ['name','=', 'l10n_fr']])[0]
w2 = AccountConfigWizard.create(:charts => chart_module_id)
w2.action_create
w3 = WizardMultiChartsAccounts.create
w3.action_create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment