Creating a new database

This dialog box can be used to create a new database instance that will be handled by the current Odoo server:

  1. In the database management window, click on the Create Database button, which can be found at the bottom of the screen:
  1. Fill in the form, as follows:
    • Master Password: This is the master password for this instance.
    • Database Name: Input the name of the database you wish to create.
    • Password: Type in the password you want to set for the admin user of the new instance.
    • Phone Number: Set the phone number (optional).
    • Language: Select the language you wish to be installed by default in the new database in the drop-down list.
    • Country: Select the country of the main company in the drop-down list. Selecting this will automatically configure a few things, such as company currency.
    • Load demonstration data: Check this box to obtain demonstration data. This is useful for running interactive tests or setting up a demonstration for a customer, but it should not be checked for a database that is designed to contain production data.
If you wish to use the database to run the automated tests of the modules (refer to Chapter 8, Debugging and Automated Testing), you need to have the demonstration data, as the vast majority of the automated tests in Odoo depend on these records in order to run successfully.
  1. Click on the Continue button and wait a while until the new database is initialized. You will then be redirected to the instance and connected as the administrator.
Troubleshooting: If you are redirected to a login screen, this is probably because the --db-filter option was passed to Odoo and the new database name didn't match the new database name. Note that the odoo-bin start command does this silently, making only the current database available. To work around this, simply restart Odoo without the start command, as shown in the Easy installation of Odoo from a source recipe of this chapter. If you have a configuration file (refer to the Storing the instance configuration in a file recipe later in this chapter), then check that the db_filter option is unset or set to a value matching the new database name.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset