Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3921 Widoki

Hello everyone,

Hope you're all safe.

I usually use the "depends" flag inside __manifest__ file to automate modules installation in Odoo, in this case on version 12.

Using this approach allows me to install several modules at once just by installing one module.

This works great, but unfortunately, there is a reference for every module to the main installed module and a this way a reference between all of them.


Using this approach, if for some reason I need to remove one of the "dependencies", Odoo will remove all related modules.

Is there any alternate way of automate modules install?

Perhaps some code to be used on "pre_init_hook/post_init_hook"?

Thank you all in advance


Best regards
PM

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,
In your query I understand that, you just want to install multiple modules at a time. But they are not interrelated. In this case you have 2 ways.

One from the user-interface.

Apps -> List view -> select modules -> Install

If the modules are always the same you can create a filter and save it for later use.
And the second method is technical. You can use -i parameter while execute odoo service
Eg:

./odoo-bin -c /etc/odoo-server.conf -i “module1, module2”

Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 20
16
1
lip 17
24551
3
lip 25
537
3
cze 25
3767
5
maj 25
4476