Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4129 Переглядів

The official documentation covers how to add a submodule, either from the odoo.sh platform itself or by using git : \https://www.odoo.com/documentation/13.0/administration/odoo_sh/advanced/submodules.html#adding-a-submodule

However, there is not (yet) documentation on how to remove a submodule. My questions are:

1. How to correctly remove a submodule from odoo.sh ? I've tried and commited the following changes:

git rm -r the_submodule
rm -rf .git/modules/the_submodule  

2. Will the platform detect that you removed modules through submodules in your branches and automatically remove them from the addons path ? If not, what is the procedure to follow ?


Аватар
Відмінити
Найкраща відповідь

Acutally it's very easy. odoo.sh is using CI/CD. So what you need to do is modifying the codes of your GitHub repository.

For example, 1) delete the folder of the submodule; 2) remove the codes relevant with the module from file ".gitmodules"

Once you submit the changed to github, odoo.sh will rebuild it automatically.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 22
4261
0
лип. 22
3199
0
серп. 21
3190
1
жовт. 20
4032
1
січ. 25
17878