Required step for Instalasi Odoo
Windows
Setup postgree for odoo:
- Add PostgreSQL’s
bindirectory (by default:C:\Program Files\PostgreSQL\version>\bin) to thePATH. - Create a postgres user with a password using the pg admin gui:
- Open pgAdmin.
- Double-click the server to create a connection.
- Select Object ‣ Create ‣ Login/Group Role.
- Enter the username in the Role Name field (e.g., odoo).
- Open the Definition tab, enter a password (e.g., odoo), and click Save.
- Open the Privileges tab and switch Can login? to Yes and Create database? to Yes.
Linux
sudo -u postgres createuser -d -R -S $USER
createdb $USER