Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How shall I add a "Path" into "addons_path" for all database forever?

By
vx2008
on 8/10/16, 9:49 PM 216 views

I create an dir named "my_modules" which  I want to save my own modules;

and now I want to add this dir into "addons_path" for all databases;

I do as below:

 odoo.py --save --config myodoo.cfg --stop-after-init (then edit myodoo.cfg and edit it:  addons_path = ~/odoo-dev/my_modules,~/odoo-dev/odoo/openerp/addons,~/odoo-dev/odoo/addons)

then : ~/odoo-dev/odoo/odoo.py -c ~/odoo-dev/myodoo.cfg --stop-after-init -u base  

after that I run :~/odoo-dev/odoo/odoo.py , I find I still can;t add my own dir.

How shall I do that?

1

Ermin Trevisan

--Ermin Trevisan--
3536
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 8/12/16, 3:32 AM

Add the path to your openerp-server.conf file and execute Odoo by specifying the conf file as parameter. I would run Odoo as a service anyway (systemd or upstart, if you are using Ubuntu).

thank you.

I check this and I just find file "openerp-server" in '../odoo' rather than 'openerp-server.conf';

I want to start "odoo" just by ".../odoo/odoo,py" and my own dir "my_modules" will be auto loaded;not each time specifying some certain file as paramete, shall I?

vx2008
on 8/12/16, 4:56 AM

Please locate the openerp-server.conf file in your installation (in an Ubuntu install you'll find it in /etc/odoo/openerp-server.conf). There you can add your custom addons path. You may then start odoo with the parameter -c path/to/your/openerp-server.conf

Ermin Trevisan
on 8/12/16, 5:24 AM

Ok

thank you!

vx2008
on 8/13/16, 2:46 AM
1
ayman mohammed adam
On 8/11/16, 5:48 AM

dear vx2008

 you can use this command to start the server what ever you want to put 
"my_modules"  any way:
./odoo.py --addons=your pure addons path,"my_modules" path.
I hope i helped you.

hey Adam, thank you for your advice and I have a try;

yes, odoo will load the modules which were saved in "my_modules" when I run the code:"./odoo.py --addons=your pure addons path,"my_modules" path."; but next time I type "./odoo.py", the modules in "my_modules" will never be loaded; In the fact I want to do some setting, and then each time type "./odoo.py" to lead these modules.

vx2008
on 8/11/16, 8:45 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/10/16, 9:49 PM
Seen: 216 times
Last updated: 8/12/16, 3:32 AM