Odoo 11 Development Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

From the command line

To install some new addons in your database, follow the following steps:

  1. Find the names of the addons. This is the name of the directory containing the __manifest__.py file without the leading path.
  2. Stop the instance. If you are working on a production database, make a backup.
  3. Run the following command:
$ odoo/odoo-bin -c instance.cfg -d dbname -i addon1,addon2 \
--stop-after-init


You may omit -d dbname if this is set in your configuration file.

  1. Restart the instance.

To update an already installed addon module in your database, follow the steps given here:

  1. Find the name of the addon module to update; this is the name of the directory containing the __manifest__.py file without the leading path.
  2. Stop the instance. If you are working on a production database, make a backup.
  3. Run the following command:
$ odoo/odoo-bin -c instance.cfg -d dbname -u addon1 \
--stop-after-init


You may omit -d dbname if this is set in your configuration file.

  1. Restart the instance.