Search code examples
odooodoo-11

How to use scaffold to create module in windows?


I read the official tutorials,Odoo's scaffolding can setup a basic module. To quickly get started simply invoke:

$ ./odoo-bin scaffold Academy my-modules

I tried it but it didn't work,Because it remind Odoo-bin is not a command

I have entered the odoo installation directory


Solution

  • Use this command on the command-line:

    "<Path_to_python.exe in the Odoo folder>" "<Path_to_odoo-bin>" scaffold "<Path_to_addons_folder>"
    

    E.g.:

    "c:\Program Files (x86)\Odoo 11.0\python\python.exe" "C:\Program Files (x86)\Odoo 11.0\server\odoo-bin" scaffold <module name here> "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons"