Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How can I scaffold a module in Odoo?

Avatar
odoo
Avatar
Discard
4 Answers
0
Avatar
odoo
Best Answer

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


Avatar
Discard
0
Avatar
odoo
Best Answer

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.

Avatar
Discard
0
Avatar
odoo
Best Answer

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

Avatar
Discard
0
Avatar
odoo
Best Answer

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.

Avatar
Discard