コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
2272 ビュー

Hi,


I would like to for development purpose fully automatically create Odoo instance using packaged installer.

I know how to configure PostgreSQL, install Odoo itself, but how to avoid web interface configuration, but rather pass all necessary information through odoo.conf and automatically create DB instance and install preferred applications?


Any examples?


Also, is there reference odoo.conf with all possible options?


Thanks in advance.

アバター
破棄
最善の回答

I think what you need is the odoo.conf flag:
server_wide_modules = 
here you can add all modules you like to be installed when a DB is created.
If you want to populate the db with informations after that, you need to create a module that writes the informations after installation. And if you automatically install the module with that flag... voila.

Odoo Beratung Deutschland

アバター
破棄
最善の回答

Hi,
If you need to create and install the modules, you can utilize the odoo command line interface, from which you can create db and install the needed modules in it.

Odoo Command Line:  How To Create Database From Terminal Odoo CLI

Module Installation:  https://www.youtube.com/watch?v=CGDAgU7Quig

Thanks

アバター
破棄
最善の回答

You should review https://www.odoo.com/documentation/17.0/developer/reference/cli.html

This lists all the command line arguments for Odoo.

Most of the command-line options can also be specified via a configuration file. Most of the time, they use similar names with the prefix - removed and other - are replaced by _ e.g. --db-template becomes db_template.


Your best bet is to create a module that is set to automatically install and depends on the other modules you want to install.

See also:

https://www.odoo.com/documentation/17.0/developer/reference/backend/module.html

https://www.odoo.com/forum/help-1/easy-way-to-transfer-settings-from-one-database-to-another-can-i-export-them-can-i-programmatically-configure-a-database-184325

アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 20
16255
2
8月 20
23451
1
10月 19
10126
4
10月 16
35096
0
3月 15
3819