Difference between revisions of "Odoo"

From ArchWiki
Jump to: navigation, search
(article looks to describe all important aspects of Open ERP)
(Configuration)
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Office]]
 
[[Category:Office]]
This introduction briefly describes [http://openerp.com/ Open ERP], its basic design, and its community. The rest of this article details installing and configuring Open ERP on Arch Linux. It also provides additional information about Open ERP documentation, community, and development.
+
[https://www.openerp.com/ OpenERP] is Enterprise Resource Planning software. It provides a complete, integrated ERP solution for small and medium sized businesses and organizations. OpenERP includes financial and analytic accounting, warehouse and inventory management, sales and purchase management, customer and supplier relations management, association management, tasks automation, human resource management, marketing campaign, document management, help desk, e-commerce integration, and point of sale functionality.
  
Open ERP is Enterprise Resource Planning software. It provides a complete, integrated ERP solution for small and medium sized businesses and organizations. Open ERP includes financial and analytic accounting, warehouse and inventory management, sales and purchase management, customer and supplier relations management, association management, tasks automation, human resource management, marketing campaign, document management, help desk, e-commerce integration, and point of sale functionality.
+
OpenERP features an application server which uses PostgreSQL as database back-end, with a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. OpenERP developers have a strong commitment to free software.
  
Open ERP features an application server which uses PostgreSQL for its database, with a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. Open ERP developers have a strong committment to free software.
+
A thriving support and development community has grown up around OpenERP, providing free technical support, bug-fixing, new development, and support services. OpenERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of OpenERP earns profits through partnership services with OpenERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.
  
A thriving support and development community has grown up around Open ERP, providing free technical support, bugfixing, new development, and support services. Open ERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of Open ERP earns profits through partnership services with Open ERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.
+
== Before Installing ==
 
+
== Before Installing Open ERP ==
+
  
 
=== Installing PostgreSQL ===
 
=== Installing PostgreSQL ===
  
Open ERP uses the PostgreSQL database, which should be installed and configured before installing Open ERP. Follow [[PostgreSQL#Installing PostgreSQL]]. Complete these installation instructions, but do '''not''' perform any other configuration from that page. Return to this page for additional configuration steps.
+
OpenERP uses the PostgreSQL database, which should be installed and configured before installing OpenERP. Follow [[PostgreSQL#Installing PostgreSQL]]. Complete these installation instructions, but do '''not''' perform any other configuration from that page. Return to this page for additional configuration steps.
  
=== Configuring PostgreSQL for local use on your own machine ===
+
=== Configuring PostgreSQL for remote use over a network ===
  
If you plan to use PostgreSQL and Open ERP on the same machine, you will need to configure PostgreSQL to listen on the localhost's 5432 TCP port. Open {{ic|/var/lib/postgres/data/postgresql.conf}} and navigate to the {{ic|CONNECTIONS AND AUTHENTICATION}} section. Uncomment the {{ic|listen_addresses}} and {{ic|port}} lines. Save the file. When complete, the section should appear as follows:
+
The by default, PostgreSQL only accepts connections from the local machine. If you plan to run PostgreSQL and OpenERP on different machines, you will need to follow [[PostgreSQL#Configure PostgreSQL to be accessible from remote hosts]].
  
#------------------------------------------------------------------------------
+
=== Setting up PostgreSQL to run with OpenERP ===
# CONNECTIONS AND AUTHENTICATION
+
#------------------------------------------------------------------------------
+
+
# - Connection Settings -
+
+
listen_addresses = 'localhost'          # what IP address(es) to listen on;
+
                                        # comma-separated list of addresses;
+
                                        # defaults to 'localhost', '*' = all
+
                                        # (change requires restart)
+
port = 5432                            # (change requires restart)
+
 
+
Restart PostgreSQL so that it uses the newly changed conf file.
+
 
+
Verify that PostgreSQL is listening on the localhost port 5432:
+
{{hc|# ss -anpt|
+
tcp        0      0 127.0.0.1:5432          0.0.0.0:*              LISTEN      13420/postgres}}
+
 
+
=== Configuring PostgreSQL for remote use over a network ===
+
 
+
If you need remote access to PostgreSQL over a network, read [[PostgreSQL#Configure PostgreSQL to be accessible from remote hosts]].
+
  
=== Setting up PostgreSQL to run with Open ERP ===
+
Next, it is necessary to create a new PostgreSQL user for OpenERP.
  
Next, it is necessary to create a new PostgreSQL user for Open ERP. In this example, the user is 'yourusername', but you should replace this with your Arch system login username. First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:
+
First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:
 
*If you have {{Pkg|sudo}} set up:
 
*If you have {{Pkg|sudo}} set up:
 
  $ sudo -i -u postgres
 
  $ sudo -i -u postgres
Line 49: Line 27:
 
  # su - postgres
 
  # su - postgres
  
Once logged in as postgres, begin the process of creating the 'yourusername' user, with the folowing command:
+
Once logged in as ''postgres'', begin the process of creating the ''openerp'' database user, with the following command:
 
+
  [postgres]$ createuser ''openerp'' --interactive -P
  $ createuser yourusername -P
+
  
 
You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a [http://world.std.com/~reinhold/diceware.html Diceware Passphrase]. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n
 
You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a [http://world.std.com/~reinhold/diceware.html Diceware Passphrase]. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n
  
 
You may also use options as below to skip the interactive questions to set the attributes:
 
You may also use options as below to skip the interactive questions to set the attributes:
 +
[postgres]$ createuser ''openerp'' --createdb --login --no-superuser --no-createrole -P
  
$ createuser yourusername --createdb --login --no-superuser --no-createrole -P
+
Once you are finished answering these questions, type {{ic|exit}} to log out from ''postgres'' and return to your regular user.
  
Once you are finished answering these questions, type the word 'exit' to log out from PostgreSQL as the postgres superuser.
+
This completes the installation and setup of PostgreSQL for use with OpenERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found in the [[PostgreSQL]] article, and the [http://www.postgresql.org/docs/manuals/ PostgreSQL Manuals webpage]. Also, there is a powerful GUI PostgreSQL Admin tool, [http://www.pgadmin.org/ pgAdmin], which is available in the Arch repositories.
 
+
You may want to enable {{ic|postgresql}} with [[systemd]] so it will start at boot.
+
 
+
This completes the installation and setup of PostgreSQL for use with Open ERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found in the [[PostgreSQL]] article, and the [http://www.postgresql.org/docs/manuals/ PostgreSQL Manuals webpage]. Also, there is a powerful GUI PostgreSQL Admin tool, [http://www.pgadmin.org/ pgAdmin], which is available in the Arch repositories.
+
  
 
== Installation and configuration ==
 
== Installation and configuration ==
  
Open ERP requires the installation of the Open ERP Server, Open ERP comes with a webserver so you can use your web browser to use it. Currently, Open ERP is not available in the official repositories, but it is available through the Arch User Repository.
+
OpenERP requires the installation of the OpenERP Server, OpenERP comes with a webserver so you can use your web browser to use it. Currently, OpenERP is not available in the official repositories, but it is available through the Arch User Repository.
  
 
=== Installation ===
 
=== Installation ===
Line 75: Line 49:
 
=== Configuration ===
 
=== Configuration ===
  
The configuration file of Open ERP server is at {{ic|/etc/openerp/openerp-server.conf}}. Make it look like this:
+
The configuration file of OpenERP server is at {{ic|/etc/openerp/openerp-server.conf}}. Edit {{ic|db_user}} and {{ic|db_password}}. If the PostgreSQL server is on a different machine, also edit {{ic|db_host}}.
 
   
 
   
 
   [options]
 
   [options]
Line 82: Line 56:
 
   db_host = localhost
 
   db_host = localhost
 
   db_port = 5432
 
   db_port = 5432
   db_user = yourusername  ##this is username you created in postegres.
+
   db_user = ''openerp''
   db_password =
+
   db_password = ''password''
 
+
You can see a complete list of configuration by using below command, it will save a copy of configuration file to {{ic|~/.openerp_serverrc}}.
+
openerp-server -s
+
 
+
For more information, use
+
openerp-server --help
+
  
If you want Open ERP to run in multiple process, add the following line to {{ic|openerp-server.conf}}.
+
If you want OpenERP to run in multiple process, add the following line to {{ic|openerp-server.conf}}.
 
  workers = n # change n to a number you like.
 
  workers = n # change n to a number you like.
  
Line 98: Line 66:
 
Use the command below to enable autostart openerp server at boot:
 
Use the command below to enable autostart openerp server at boot:
  
  systemctl enable openerp.service
+
  # systemctl enable openerp.service
  
 
Use the command below to start openerp:
 
Use the command below to start openerp:
  
  systemctl start openerp.service
+
  # systemctl start openerp.service
  
 
=== Logging in ===
 
=== Logging in ===
  
Go to http://localhost:8069 in your web browser and you will be greeted by the Open ERP login page.
+
Go to http://localhost:8069 in your web browser and you will be greeted by the OpenERP login page.
  
==Additional Open ERP Documentation==
+
==Additional OpenERP Documentation==
  
There are various sources of Open ERP documentation. The best place to start is the [http://doc.openerp.com/ Open ERP Documentation webpage]. This page links to different online documents, including [http://doc.openerp.com/install/index.html detailed installation instructions]. Additionally, there is an online copy of the book, [http://doc.openerp.com/book/index.html "Open ERP for Retail and Industrial Management"],and can be purchased from [http://www.amazon.com/Open-ERP-Retail-Industrial-Management/dp/2960087607/ Amazon.com]. While Open ERP documentation, such as "Open ERP for Retail and Industrial Management" is freely downloadable, it does not come with a free documentation license.
+
There are various sources of OpenERP documentation. The best place to start is the [http://doc.openerp.com/ OpenERP Documentation webpage]. This page links to different online documents, including [http://doc.openerp.com/install/index.html detailed installation instructions]. Additionally, there is an online copy of the book, [http://doc.openerp.com/book/index.html "OpenERP for Retail and Industrial Management"],and can be purchased from [http://www.amazon.com/Open-ERP-Retail-Industrial-Management/dp/2960087607/ Amazon.com]. While OpenERP documentation, such as "OpenERP for Retail and Industrial Management" is freely downloadable, it does not come with a free documentation license.
  
==Open ERP Community==
+
==OpenERP Community==
  
The Open ERP Community is centered upon the [http://openobject.com/ Open Object website]. Free technical support for Open ERP may be found in the [http://openobject.com/forum/index.php webforums]{{Linkrot|2013|08|26}}, a [http://tiny.be/mailman/listinfo/tinyerp-users mailing list]{{Linkrot|2011|09|06}} which is linked to the webforums, an [http://openobject.com/irc/ IRC channel] on freenode.net, an [http://www.openobject.com/wiki/index.php/Main_Page Open ERP wiki], and the [http://doc.openerp.com/ Official ERP Documentation webpage.] The latest news may be found on [http://openerp.com/planet/ Open ERP Planet], while various Open ERP screencasts are provided on [http://www.openerp.tv/ Open ERP TV]. Fee-based support services are provided by [http://openerp.com/en/partners.html Open ERP Partners]{{Linkrot|2011|09|06}}.
+
The OpenERP Community is centered upon the [http://openobject.com/ Open Object website]. Free technical support for OpenERP may be found in the [http://openobject.com/forum/index.php webforums]{{Linkrot|2013|08|26}}, a [http://tiny.be/mailman/listinfo/tinyerp-users mailing list]{{Linkrot|2011|09|06}} which is linked to the webforums, an [http://openobject.com/irc/ IRC channel] on freenode.net, an [http://www.openobject.com/wiki/index.php/Main_Page OpenERP wiki], and the [http://doc.openerp.com/ Official ERP Documentation webpage.] The latest news may be found on [http://openerp.com/planet/ OpenERP Planet], while various OpenERP screencasts are provided on [http://www.openerp.tv/ OpenERP TV]. Fee-based support services are provided by [http://openerp.com/en/partners.html OpenERP Partners]{{Linkrot|2011|09|06}}.
  
 
==Open Object RAD==
 
==Open Object RAD==
  
Open Object is the Python-based [http://openobject.com/index.php?option=com_content&view=article&id=46&Itemid=53 Rapid Application Development framework] for developing Open ERP modules. It allows developers and businesses to customize Open ERP for specific needs. Open Object RAD development work is centered upon the [https://launchpad.net/openobject Open Object Launchpad page]. Developer news and blogs are published on [http://openobject.com/planet/ Open Object Planet]. There are pages for [http://www.openerp.com/index.php?option=com_content&view=article&id=18&Itemid=28 software downloads], [http://doc.openerp.com/modindex.html Open ERP module downloads]{{Linkrot|2011|09|06}}, and [http://openobject.com/index.php?option=com_content&view=article&id=53&Itemid=61 development source code downloads].
+
Open Object is the Python-based [http://openobject.com/index.php?option=com_content&view=article&id=46&Itemid=53 Rapid Application Development framework] for developing OpenERP modules. It allows developers and businesses to customize OpenERP for specific needs. Open Object RAD development work is centered upon the [https://launchpad.net/openobject Open Object Launchpad page]. Developer news and blogs are published on [http://openobject.com/planet/ Open Object Planet]. There are pages for [http://www.openerp.com/index.php?option=com_content&view=article&id=18&Itemid=28 software downloads], [http://doc.openerp.com/modindex.html OpenERP module downloads]{{Linkrot|2011|09|06}}, and [http://openobject.com/index.php?option=com_content&view=article&id=53&Itemid=61 development source code downloads].

Revision as of 23:00, 12 January 2014

OpenERP is Enterprise Resource Planning software. It provides a complete, integrated ERP solution for small and medium sized businesses and organizations. OpenERP includes financial and analytic accounting, warehouse and inventory management, sales and purchase management, customer and supplier relations management, association management, tasks automation, human resource management, marketing campaign, document management, help desk, e-commerce integration, and point of sale functionality.

OpenERP features an application server which uses PostgreSQL as database back-end, with a web-based client. It is written in the Python programming language, with a highly modular design which allows for the rapid development of new modules through Open Object RAD. OpenERP developers have a strong commitment to free software.

A thriving support and development community has grown up around OpenERP, providing free technical support, bug-fixing, new development, and support services. OpenERP provides extensive documentation in various electronic formats, as well as hardcopy. The company responsible for development of OpenERP earns profits through partnership services with OpenERP consultants, and by providing support, training, hosting services, software development, and software quality testing and verification.

Before Installing

Installing PostgreSQL

OpenERP uses the PostgreSQL database, which should be installed and configured before installing OpenERP. Follow PostgreSQL#Installing PostgreSQL. Complete these installation instructions, but do not perform any other configuration from that page. Return to this page for additional configuration steps.

Configuring PostgreSQL for remote use over a network

The by default, PostgreSQL only accepts connections from the local machine. If you plan to run PostgreSQL and OpenERP on different machines, you will need to follow PostgreSQL#Configure PostgreSQL to be accessible from remote hosts.

Setting up PostgreSQL to run with OpenERP

Next, it is necessary to create a new PostgreSQL user for OpenERP.

First, log in as the default PostgreSQL superuser, 'postgres', by executing the following command from the CLI:

  • If you have sudo set up:
$ sudo -i -u postgres
  • Otherwise:
$ su
# su - postgres

Once logged in as postgres, begin the process of creating the openerp database user, with the following command:

[postgres]$ createuser openerp --interactive -P

You will first be asked for a password. For highly secure yet easy to remember passwords, consider using a Diceware Passphrase. Re-enter the password as requested. The next three questions should be answered in sequence with n, y, and n. Shall the new role be a superuser? n Shall the new role be allowed to create database? y Shall the new role be allowed to create more new roles? n

You may also use options as below to skip the interactive questions to set the attributes:

[postgres]$ createuser openerp --createdb --login --no-superuser --no-createrole -P

Once you are finished answering these questions, type exit to log out from postgres and return to your regular user.

This completes the installation and setup of PostgreSQL for use with OpenERP under Arch Linux. Additional detailed information about PostgreSQL configuration may be found in the PostgreSQL article, and the PostgreSQL Manuals webpage. Also, there is a powerful GUI PostgreSQL Admin tool, pgAdmin, which is available in the Arch repositories.

Installation and configuration

OpenERP requires the installation of the OpenERP Server, OpenERP comes with a webserver so you can use your web browser to use it. Currently, OpenERP is not available in the official repositories, but it is available through the Arch User Repository.

Installation

Install openerpAUR from the AUR.

Configuration

The configuration file of OpenERP server is at /etc/openerp/openerp-server.conf. Edit db_user and db_password. If the PostgreSQL server is on a different machine, also edit db_host.

 [options]
 ; This is the password that allows database operations:
 ; admin_passwd = admin
 db_host = localhost
 db_port = 5432
 db_user = openerp
 db_password = password

If you want OpenERP to run in multiple process, add the following line to openerp-server.conf.

workers = n # change n to a number you like.

Starting the server

Use the command below to enable autostart openerp server at boot:

# systemctl enable openerp.service

Use the command below to start openerp:

# systemctl start openerp.service

Logging in

Go to http://localhost:8069 in your web browser and you will be greeted by the OpenERP login page.

Additional OpenERP Documentation

There are various sources of OpenERP documentation. The best place to start is the OpenERP Documentation webpage. This page links to different online documents, including detailed installation instructions. Additionally, there is an online copy of the book, "OpenERP for Retail and Industrial Management",and can be purchased from Amazon.com. While OpenERP documentation, such as "OpenERP for Retail and Industrial Management" is freely downloadable, it does not come with a free documentation license.

OpenERP Community

The OpenERP Community is centered upon the Open Object website. Free technical support for OpenERP may be found in the webforumsTemplate:Linkrot, a mailing listTemplate:Linkrot which is linked to the webforums, an IRC channel on freenode.net, an OpenERP wiki, and the Official ERP Documentation webpage. The latest news may be found on OpenERP Planet, while various OpenERP screencasts are provided on OpenERP TV. Fee-based support services are provided by OpenERP PartnersTemplate:Linkrot.

Open Object RAD

Open Object is the Python-based Rapid Application Development framework for developing OpenERP modules. It allows developers and businesses to customize OpenERP for specific needs. Open Object RAD development work is centered upon the Open Object Launchpad page. Developer news and blogs are published on Open Object Planet. There are pages for software downloads, OpenERP module downloadsTemplate:Linkrot, and development source code downloads.