Load server wide modules in environment#56
Load server wide modules in environment#56paradoxxxzero wants to merge 1 commit intoacsone:masterfrom
Conversation
|
Could we make this optional, disabled by default? I worry about backward compatibility issues. |
|
I have a case where this PR can be useful: Is it possible to re-base this pr? |
45dc4b3 to
71bcf45
Compare
|
Rebased |
|
Another use case is the |
|
I still worry about backward compatibility if this is enabled unconditionally, though. |
|
It should not be enabled by default. For example, we don't want to load queue_job on click-odoo-update.... (it could be without effect but it's a module that raises a red flag for me in terms of the potentially unpredictable behaviors of this change) |
Odoo loads server wide modules before doing anything else (see https://github.com/odoo/odoo/blob/16.0/odoo/service/server.py#L1356), not doing it here can break modules that expect server wide modules to be loaded.