Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
79793 Lượt xem

I followed this guide to setup my Odoo Community server: https://www.linode.com/docs/websites/cms/install-odoo-10-on-ubuntu-16-04

(See in particular the section "Create an Odoo Service")

My Odoo installation works absolutely fine with just the default addons path.

My Odoo installation is in /opt/odoo/odoo10.

The relevant part of my service file reads:

[Service]
Type=simple PermissionsStartOnly=true SyslogIdentifier=odoo-server User=odoo Group=odoo
ExecStart=/opt/odoo/odoo10/odoo-bin --config=/etc/odoo-server.conf --addons-path="/opt/odoo/odoo10/addons/,/opt/odoo/odoo10/custom-addons/"
WorkingDirectory=/opt/odoo/odoo10/


In my server.conf file, I also have the line:

addons_path = /opt/odoo/odoo10/addons, /opt/odoo/odoo10/custom-addons


When I attempt to start the Odoo server, I get the error:

odoo-server[1303]: odoo-bin: error: option --addons-path: The addons-path '/opt/odoo/odoo10/custom-addons/' does not seem to a be a valid Addons Directory!

I've double checked the permissions on the directory, and the odoo system user is the owner, with proper chmod permissions.

Please advise.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I actually figured it out. The issue was backslashes at the end of the paths.

The correct line in the service configuration file should read:

--addons-path="/opt/odoo/odoo10/addons,/opt/odoo/odoo10/custom-addons"
Ảnh đại diện
Huỷ bỏ
Tác giả

I should add that if your custom addons folder is empty, Odoo won't recognize it as a valid folder. Download/unzip or git clone an addon into the folder first before starting the server.

Câu trả lời hay nhất

Please check your addons path for  /opt/odoo/odoo10/custom-addons   and make sure this path exist and correct.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

you don't really need to specify base directory for odoo modules. enough to add your modules directory.

--addons-path=/opt/odoo/odoo10/custom-addons

make sure you have execute permission on.

Ảnh đại diện
Huỷ bỏ