Hello Odooers:
We have a custom module that needs to be uninstalled during the 19.0 upgrade since it is no longer going to be used. There are no other modules dependent on it.
We have written a migration script that uses the upgrade util remove_module and included the script in one of the custom modules that will continue to be used.
We get the following upgrade warning during the upgrade process and there is very little information available on where the script should be located.
2026-02-11 05:59:33,865 79 WARNING xxxx py.warnings: /home/odoo/src/user/xxxx/upgrades/19.0.1.0/pre-remove.py:13: UpgradeWarning: Calling `remove_module` outside the module base can lead to unexpected results
We have used a similar approach during previous upgrades and it has worked without any warnings. This warning seems to have been added to the upgrade scripts by Odoo about 4 months back (Link to upgrade util source code).
Has anyone encountered this issue during a 19.0 upgrade and found where such a script should be located to avoid this warning?
Thanks much.
Hello, You're not modifying base's code. You're just placing a migration script in /src/user/base/upgrades/19.0.1.0/pre-migrate.py — Odoo.sh's upgrade framework picks it up automatically. The core module stays untouched.
Hope it helps
Hi Kunjan: Thanks for the reply. Please provide the source of this information.
As I mentioned earlier, `base` is a core Odoo module. You cannot have a custom module of the same name as indicated by you in your response, unless I have misunderstood your reply.