Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2283 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 20
16262
2
thg 8 20
23453
1
thg 10 19
10131
4
thg 10 16
35104
0
thg 3 15
3822