تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
24452 أدوات العرض

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?

 



الصورة الرمزية
إهمال
أفضل إجابة

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!


الصورة الرمزية
إهمال
الكاتب

Thanks a lot, it is a very comprehensive explanation.

المنشورات ذات الصلة الردود أدوات العرض النشاط
6
سبتمبر 24
52195
2
يونيو 20
19913
0
نوفمبر 16
2985
0
مارس 16
5849
1
فبراير 16
6144