上QQ阅读APP看书,第一时间看更新
From the command line
To install some new addons in your database, follow the following steps:
- Find the names of the addons. This is the name of the directory containing the __manifest__.py file without the leading path.
- Stop the instance. If you are working on a production database, make a backup.
- 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.
- Restart the instance.
To update an already installed addon module in your database, follow the steps given here:
- 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.
- Stop the instance. If you are working on a production database, make a backup.
- 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.
- Restart the instance.