Skip to Content
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Sign in
  • Nederlands English (US) Español (AR)
  • Contact Us
  • Home
  • Blog
  • Jobs
  • Contact us
Cafayate.Net
  • 0
  • 0
    • Home
    • Blog
    • Jobs
    • Contact us
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Sign in
  • Contact Us

How can I install Odoo 9?

  • All Blogs
  • Tech Blog
  • How can I install Odoo 9?
  • March 5, 2021 by
    Administrator

    #download and uncompress Odoo, change YYYYMMdd to match the name of your extracted Odoo folder

    mkdir /opt/odoo
    cd /opt/odoo
    wget https://nightly.odoo.com/master/nightly/src/odoo_9.0alpha1.latest.tar.gz
    tar xvf odoo_9.0alpha1.latest.tar.gz
    mv odoo-9.0alpha1-YYYYMMdd server

    #install python-virtualenv if you don’t have it, I use Ubuntu

    apt-get install python-virtualenv -y

    #install this libraries needed for correctly install the requirements

    apt-get install libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libssl-dev -y
    apt-get install postgresql-server-dev-X.Y

    #create a virtualenv

    mkdir -p /opt/virtualenv/odoo-9.0
    virtualenv /opt/virtualenv/odoo-9.0

    #activate the virtualenv

    source /opt/virtualenv/odoo-9.0/bin/activate

    #install Odoo v9 requirements

    pip install -r /opt/odoo/server/requirements.txt

    #aditionaly

    pip install flanker
    pip install ofxparser

    #deactivate the virtualenv

    deactivate

    #install nodejs and require modules

    apt-get install nodejs npm
    ln -s /usr/bin/nodejs /usr/bin/node
    npm install -g less
    npm install -g less-plugin-clean-css

    That’s all I think. To run Odoo v9 using the virtualenv you have 2 options

    1- Activate the virtualenv like before and run:

    python /opt/odoo/server/odoo.py --config /path/to/config

    2- Directly use the python in the virtualenv

    /opt/virtualenv/odoo-9.0/bin/python /opt/odoo/server/odoo.py --config /path/to/config

    The config file for Odoo is where you put Odoo options such as database conections options or add others addons modules to the addons path or specify other xmlrpc_port to run Odoo. Could be something like this:

    [options]
    admin_passwd = admin
    db_host = localhost
    db_port = 5432
    db_user = odoo
    db_password = odoo
    xmlrpc_port = 8069
    addons_path = /optodoo/server/openerp/addons,/opt/odoo/extra/addons
    email_from = [email protected]

    In the addons_path option you could put a comma separated paths to addons folders

    Hope this helps

    in Tech Blog
    Odoo Website Sale Product Brand

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Get in touch

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Follow us
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)