콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
16254
2
8월 20
23451
1
10월 19
10125
4
10월 16
35095
0
3월 15
3818