Hi Forum,
I am trying to create and install a module that I have created in Odoo 11, but to no avail. I have tried a number of things, but nothing seems to work and I suspect this has something to do with permissions. Nonetheless, I am including a description of what I have done.
1. On a virtual Ubuntu 16.04 machine, I have installed Odoo 11 using this script (courtesy of Yenthe), found here https://raw.githubusercontent.com/Yenthe666/InstallScript/11.0/odoo_install.sh
2. Odoo is thus installed in /odoo/odoo-server/. There does not seem to be any issues in running it, the configuration file is in /etc/odoo-server.conf and the addons parth is /odoo/odoo-server/addons
3. i created a new module using scaffold via CLI (I had also tried this without scaffold as well, without any success, but the system does not show any errors, so I have no idea if I am doing anything wrong):
./odoo-bin scaffold -t default <mymodule> /odoo/odoo-server/addons
4. This creates the module in /odoo/odoo-server/addons, which is the path in my /etc/odoo-server.conf file as well
[options]
addons_path = /odoo/odoo-server/addons,/odoo/odoo-server/odoo/addons,/opt/odoo/addons
and all the relevant files, no problems so far. I can see the files there, as per the documentation and I make the necessary changes as per documentation
5. Once done, I go back to my Odoo instance and in Settings, activate developer mode, then update app list, confirm there is an update, go to Apps, remove the default filter, search for the module, then...nothing. I can't seem to find it and I think I have tried everything else which I have found across the Net, namely:
a. creating the module without scaffolding
b. Changing the permissions of the folder and files, using
sudo chown -R odoodev /odoo/odoo-server/addons/<mymodule>
sudo chmod 755 /odoo/odoo-server/addons/<mymodule>
sudo chmod 644 /odoo/odoo-server/addons/<mymodule>
Not sure what else to do...it has been pretty frustrating, as the documentation is limited. Thanks in advance!
Did you reboot the server? During one of your experiments, the server may have disqualified the module folder as valid - if if that's the case it won't look again until you reboot. You also need to do this after every change in any Python file (as you are developing).
add step 6. restart odoo server