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

I'v just started learning using odoo , and I have a problem with my first module 

I created a new module called it "clinic" and place it in a folder called "My_addons" after that I've used the following command to start the server :

./odoo.py --addons-path addons,My_addons



when I refreshed the webpage I 've updated the module list then searched for clinic and nothing showed 



what is the problem and the possible mistakes that I might done 

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

Update your modules onder settings too, it should then show up in the list :)

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

Hi Afnan,

The following links will help you to resolve your issue:

https://www.odoo.com/forum/help-1/question/how-do-you-install-a-module-578  

https://www.odoo.com/forum/help-1/question/creating-a-module-53357 

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

Hi Afnan,

Its not necessary to put your custom module addons in same folder where odoo addons is places.

wherever your custom addons is placed you just mention that path in addons path.

now coming on why you are not able to see your module in odoo module list.

for that you have to do "Update Module List" 

after then you will able to see your module in odoo local module list.

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

in yout terminal. use code:

./odoo.py -c /etc/odoo-server.conf -d YOUR_DB_NAME -u YOUR_MODULE_NAME


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

I've checked these website before but I couldn't get every thing .

I want to know somthing , is it right that the "My_addons" folder that has my module shouldn't be in addons folder but they both located in the same directory .???


another question :

I've used as mentioned the following command for starting the server and I found another commands , one of them was in the tutorial video I've been watching but I couldn't understand it .

python odoo.py --addons=../addons,../web/addons,../myaddons

I don't know every one id for what and I don't have a web folder 

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