Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sambatlim/c2e952b9614ef0fb0c5f3a745145788e to your computer and use it in GitHub Desktop.
Save sambatlim/c2e952b9614ef0fb0c5f3a745145788e to your computer and use it in GitHub Desktop.
Command to create module of odoo12 for window10
Run your CMD as administration and copy and paste the command below and hit enter.
"C:\Program Files (x86)\Odoo 12.0\python\python.exe" "C:\Program Files (x86)\Odoo 12.0\server\odoo-bin" scaffold manageasset "C:\Users\User\Desktop\custom_addons"
<*==============================================*>
Command explanation:
"C:\Program Files (x86)\Odoo 12.0\python\python.exe" "C:\Program Files (x86)\Odoo 12.0\server\odoo-bin": this command is the respository of your odoo12 instalation -It used to be odoo-bin.
"scaffold": will create the module.
"manageasset": name of your module.
"C:\Users\User\Desktop\custom_addons": your custom module directory. By default It is "C:\Program Files (x86)\Odoo 12.0\server\odoo\addons".
<*==============================================*>
Incase you don't know how to change the addon directory follow this:
1. Go to this repository: "C:\Program Files (x86)\Odoo 12.0\server"
2. Find this file: "odoo.conf"
3. Find the word addons_path and add the new repository you want. Example: addons_path = C:\Program Files (x86)\Odoo 12.0\server\odoo\addons,C:\Users\User\Desktop\custom_addons
<*====================The end========================*>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment