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

I've just started trying out Odoo. (v13.0)

I'd like to use docker to create a container that setups up Odoo the way I want it. I've used the official Odoo Docker images to install Odoo and it works well.

However, when I log in to the installed Odoo this way, I need to :

 - log in

 - create the database

 - install each module I want to enable (official, not custom)

I would like to be able to push all of this into the Dockerfile so Odoo opens up configured with the modules I want to enable.

If it matters, I need this to work instead of just using persistence with Docker volumes because I want to be able to collaborate with other members of the organization in determining which subset of modules are useful, and do so in such a way that they just spin up the container and see what it would look like.

Any of the following ways would be fine :

  - Some environment variables which control what gets installed

  - Some parameters in the odoo.conf file which specifies what to enable

  - Some CLI commands I can run once container spins up which triggers the install of modules

Any help moving in this direction would be appreciated.

Ảnh đại diện
Huỷ bỏ
Tác giả

I did see that. I wasn't able to find a list of what the modules are actually called, though, so I wasn't sure if that only applied to custom modules which could be named by folder or python package.

You can find a list in Developer mode when you look in the Apps Menu. They are the names of the folders. Python packages are installed when modules need them via the "external_dependencies" key - learn more at https://www.odoo.com/documentation/13.0/reference/module.html

Câu trả lời hay nhất

Command-line options the first time you run Odoo?

Do you know about:


-i <modules>, --init <modules>

comma-separated list of modules to install before running the server (requires -d).


View the documentation at https://www.odoo.com/documentation/13.0/reference/cmdline.html


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 24
1386
2
thg 7 20
4145
1
thg 1 20
2659
1
thg 12 19
3126
7
thg 4 17
13280