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

I read here that you can scaffold a module using a command, so you won't need to manually create some initial files. But such command does not work on master (on Odoo development branch):

./oe scaffold Academy ../my-modules

Because there is no such file called oe in openerp directory. Did this thing change in the newest version? How can I scaffold a module in Odoo?

I have been searching for my answer i have found this! https://doc.openerp.com/trunk/server/howto/howto_website/ | [Qlikview](https://mindmajix.com/qlikview-training

)

Help Me Out!

Thanks!

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

Create new module using scaffold command :- https://youtu.be/24FDfxtMxPA

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

Hi sarahjohn,

The scaffold command is a built in command that is available across all Odoo versions.
Usually you should execute the Odoo main file, which is usually named odoo-server. For example in V11:

cd /odoo/odoo-server/

./odoo-bin scaffold your_module_name addons/

In V10 and below:

cd /odoo/odoo-server/

./openerp-server scaffold your_module_name addons/

You can find more information and details in the official wiki about this too! See https://www.odoo.com/documentation/11.0/howtos/backend.html#module-structure

Regards,
Yenthe


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

With community version in Ubuntu, I have been looking for a while for odoo-bin, but I couldn't find it. At last I manage to make it work with

"odoo scaffold <module_name> <module location>" with root permissions

it works in any directory and both versions 10 and 11, at least.

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

Hy sarahjohn, You can go through this link so that you can get a solution for your answere http://learnopenerp.blogspot.com/2016/03/how-to-create-and-install-modules-in.html | QlikView(https://goo.gl/MtHqbu)

Thanks

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

Hey @Sarahjohn,

Please try this in your terminal for v10 and v11:

python odoo-bin scaffold new_module_name

FYI :

\https\:\/\/www\.odoo\.com\/documentation\/11\.0\/reference\/cmdline\.html\#scaffolding\\\

\https://www.odoo.com/forum/help-1/question/odoo-10-create-a-new-module-111485

Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2316
1
thg 7 25
831
1
thg 8 25
1150
0
thg 5 25
1285
2
thg 4 25
3494