This is the documentation for older versions of Odoo (formerly OpenERP).

See the new Odoo user documentation.

See the new Odoo technical documentation.

Creación de base de datos

Use the Manage databases link in this section to create a new database, openerp_ch01 . This database will contain the demonstration data provided with OpenERP and a large proportion of the core OpenERP functionality. You will need to know your super administrator password for this – or you will have to find somebody who does have it to create this database.

Nota

Contraseña del Super-administrador

Cualquiera que sepa que la contraseña de super administrador tiene acceso completo a los datos en el servidor - capaz de leer, cambiar y borrar cualquiera de los datos en cualquiera de las bases de datos de esta.

After first installation, the password is admin. This is the hard-coded default, and is used if there is no accessible server configuration file. If your system has been set up so that the server configuration file can be written to by the server, then you can change the password through the client. Or you could deliberately make the configuration file read-only so that there is no prospect of changing it from the client. Either way, a server systems administrator can change it if you forget it.

Así que si su sistema esta en disponibilidad de permitirlo, puedes cambiar la contraseña de super administrador vía el cliente usando el botón de Enviar el enlace de restablecimiento de contraseña por correo electrónico en la forma del usuario

La ubicación del fichero de la configuración del servidor es típicamente definido al comenzar el servidor con la opción en la linea de comando de --config.

/doc_static/7.0/_images/change_superadmin_pwd.png

Cambiar la contraseña de super-administrador a traves del cliente web

Creando la base de datos

Usa el vínculo de Manage databases, Databases ‣ Create en el menú. Ingresa la contraseña de super administrador, seguido del nombre de la nueva base de datos que estas creando.

/doc_static/7.0/_images/create_new_db.png

Creando una nueva base de datos

At the time of creation database you can see the checkbox that determines whether you load demonstration data or not. The consequences of checking this box or not affect the whole use of this database.

You will also see that you can choose the Administrator password. This makes your database quite secure because you can ensure that it is unique from the outset. (In fact many people find it hard to resist admin as their password!)

Base de datos openerp_cap01

Wait for the message showing that the database has been successfully created, along with the user accounts and passwords (admin/XXXX and demo/demo ). Now that you have created this database, you can extend it without having to know the super-administrator password.

Truco

Accesos de usuarios

La combinación de nombre de usuario/contraseña es especifica a cada base de datos. Si tienes permisos de administrador a una base de datos, podrás modificar todos los usuarios.

Alternatively, you can install the users_ldap module, which manages the authentication of users in LDAP (the Lightweight Directory Access Protocol, a standard system), and connect it to several OpenERP databases. Using this, many databases can share the same user account details.

Nota

Fallas durante la creación de una base de datos

How do you know if you have successfully created your new database? You are told if the database creation has been unsuccessful. If you have entered a database name using prohibited characters (or no name, or too short a name), you will be alerted by the dialog box Bad database name! explaining how to correct the error. If you have entered the wrong super-administrator password or a name already in use (some names can be reserved without your knowledge), you will be alerted by the dialog box Error during database creation!.

Administrando bases de datos

Como super administrador, no solo tienes permisos para crear bases de datos pero tambien:

  • respaldando bases de datos

  • eliminando bases de datos

  • restableciendo bases de datos

Todas las operaciones pueden ser llevadas desde la opción Manage Database en la pantalla de Login.

Truco

Respaldo (copia) de una base de datos

To make a copy of a database, go to the web Login screen and click the Manage Databases button. Then click the Backup button, select the database you want to copy and enter the super-administrator password. Click the Backup button to confirm that you want to copy the database.

Truco

Tirar (eliminar) una base de datos

To delete a database, go to the web Login screen and click the Databases button. Then click the Drop button, select the database you want to delete and enter the super-administrator password. Click the Drop button to confirm that you want to delete the database.

Truco

Restablecer una base de datos

To restore a database, go to the web Login screen and click the Manage Databases button. Then click the Restore button, click the Choose File button to select the database you want to restore. Give the database a name and enter the super-administrator password. Click the Restore button to confirm that you want to install a new copy of the selected database. To restore a database, you need to have an existing copy, of course.

Truco

Duplicar una base de datos

para duplicar una base de datos, puede:

  1. generar un respaldo en tu PC desde esta base de datos.

  2. reestablece esta base de datos del archivo de respaldo en tu PC, y dale un nuevo nombre.

Esto puede ser útil de forma que haciendo una base de datos de prueba desde una base de datos de producción. Puedes probar laoperación de una nueva configuración, nuevo módulo, o importando nuevos datos.

Un administrador de sistemas puede configurar OpenERP para acceso restringido unicamente a algunas funcionalidades de la base de datos para que su seguridad sea robustecida en ambientes de producción.

Ahora esta usted listo para usar la base de datos desde su instalación y familiarizarse con la administración y uso de OpeERP.

Nueva funcionalidad de OpenERP

The database you have created and managed so far is based on the core OpenERP functionality that you installed. The core system is installed in the file system of your OpenERP application server, but only installed into an OpenERP database as you require it, as is described in the next chapter, Paseo guiado.

¿Que pasa si usted desea actualizar lo que esa ahí, o quiera extender lo que existe con módulos adicionales?

  • Para actualizar lo que tiene, deberá instalar una nueva instancia de OpenERP usando la misma técnica como se describio antes en esta seccion, Creación de base de datos.

  • Para extender lo que tiene, deberá instalar nuevos modulos en el directorio de``addons`` dentro de la instalación de OpenERP. Existen diferentes formas de hacer esto.

En ambos casos deberá de convertirse en usuario root o Administrador en el servidor de aplicaciones de OpenERP.

Extendiendo OpenERP

To extend OpenERP you will need to copy modules into the addons directory. That is in your server's openerp-server directory (which differs between Windows, Mac and some of the various Linux distributions and not available at all in the Windows all-in-one installer).

If you look there you will see existing modules such as product and purchase. A module can be provided in the form of files within a directory or a a zip-format file containing that same directory structure.

Usted puede agregar módulos de dos formas principales - vía el servidor o vía el cliente.

To add new modules through the server is a conventional system administration task. As root user or another suitable user, you would put the module in the addons directory and change its permissions to match those of the other modules.

To add new modules through the client you must first change the permissions of the addons directory of the server, so that it is writeable by the server. That will enable you to install OpenERP modules using the OpenERP client (a task ultimately carried out on the application server by the server software).

Truco

Cambiar permisos

A very simple way of changing permissions on the Linux system you are using to develop an OpenERP application is to execute the command sudo chmod 777 <path_to_addons> (where <path_to_addons> is the full path to the addons directory, a location like /usr/lib/python2.5/site-packages/openerp- server/addons).

Any user of OpenERP who has access to the relevant administration menus can then upload any new functionality, so you would certainly disable this capability for production use. You will see examples of this uploading as you make your way through this book.