I have created the summarize of all the process of command to create the module and change the addon repository.
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:
- Go to this repository: "C:\Program Files (x86)\Odoo 12.0\server"
- Find this file: "odoo.conf"
- 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========================>
Link to github gist