Skip to Content
Menu
This question has been flagged

Hi, I am using Odoo 10, having installed Odoo using the .deb package in Ubuntu 14.04LTS.


I have prepared a test package following:

https://www.odoo.com/documentation/10.0/howtos/backend.html#build-an-odoo-module


Once I have modified module files including a test field, how do I install it?

 I have found this: http://stackoverflow.com/questions/39980781/how-do-i-install-the-odoo-10-enterprise-modules-on-the-community-version

Where it says that you have to install the module in the addons path (which in Ubuntu 14.04 LTS using .deb package it would be /usr/lib/python2.7/dist-packages/odoo/addons).

And then you are expected to do this:

kill all instances of the server and then run the server with -d your_database_name -u all, so that everything will be loaded properly.

How can I launch the server with such commands? Odoo user has no password in Ubuntu 14.04LTS. do I have to assign a shell password and use that user to launch Odoo instance?

 



Avatar
Discard
Best Answer

I am not certain about your exact system setup, but you should be able to run a couple of simple commands from the shell:


su odoo
cd YOUR_ODOO_DIRECTORY
# If your module has never been installed, you would run:
./odoo.py -c CONFIG_FILE_PATH -d YOUR_DB -i YOUR_MODULE

# If your module has already been installed, you would run:

./odoo.py -c CONFIG_FILE_PATH -d YOUR_DB -u YOUR_MODULE


Those are the commands to run the server manually. You may have an "odoo-server" service setup, where you would be able to run something like "service odoo-server restart". This depends on how you installed Odoo in the first place.


Regardless of how your server is installed, you can always do the following:

  1. Add your module to the addons path

  2. Restart Odoo server (either with manual commands or service)

  3. Activate Odoo Developer Mode (https://www.odoo.com/slides/slide/debug-like-a-pro-the-developer-mode-453)

  4. Go to Apps menu in Odoo

  5. Click "Update Apps List"

  6. Search for your app & install


Good luck!


Avatar
Discard
Author

Thanks a lot, it is a very comprehensive explanation.

Related Posts Replies Views Activity
6
Sep 24
50460
2
Jun 20
18532
0
Nov 16
2277
0
Mar 16
5052
1
Feb 16
5080