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

Hi all,

I'm working on Centos 7 / Odoo 10,

How can I create new module using Odoo framework ?

I searched help and I found this command :

odoo-bin scaffold <module name> <where to put it>


I run it but an error occurred :

bash: odoo-bin: command not found...


Thanks.

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

odoo-bin needs to be run from the directory where it exists in your file system OR added to your $PATH

for instance my odoo-bin is within 

/odoo/odoo-server/odoo-bin

if I cd into /odoo/odoo-server I can then run:

./odoo-bin scaffold mymodule /odoo/custom/addons/

I need the ./ in here because /odoo/odoo-server is not in my $PATH

where /odoo/custom/addons is my directory for custom made modules so as not to interfere with odoo base modules. This can be setup from the command line and by editing /etc/odoo-server.conf (my installation is on Ubuntu fyi)

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

Hi BKF,

With odoo-10 don't use odo-bin  Just use odoo:

/odoo scaffold mymodule

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

In addition to the above answer, (https://www.odoo.com/forum/help-1/question/odoo-10-create-a-new-module-111485#answer_111523)

You can refer this link (http://www.odoo.com/documentation/9.0/howtos/backend.html)
for more details.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 17
2469
3
thg 7 25
1989
2
thg 7 25
4493
3
thg 5 25
3469
2
thg 12 24
7670