Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Module loading priority and inheritance
by "Richard deMeester" <richard.demeester@willdooit.com> - 17/06/2022 14:41:33
Kind Regards
T: (03) 9135 1900 | M: 0403 76 76 76 | A: Bld 10/435 Williamstown Road, Port Melbourne, 3207
|
||
|
||
|
Sent: Friday, 17 June 2022 7:02 PM
To: Contributors <contributors@odoo-community.org>
Subject: Re: Module loading priority and inheritance
- PostgreSQL database collation
- Module name
- Datetime of the creation of the ir_module_module row (since no ORDER BY is defined in the query)
- The dependencies
- On the development database:
- You add the module account_extra, that depends on account and override method update_something, in your main addons path
- update_list()
- Two weeks later, you add the module account_best , that also depends on account and also override the method update_something, in your main addons path
- update_list()
- Module account_extra will be loaded before account_best
- Three weeks later, on the production database:
- You add modules account_extra and account_best in your main addons path
- update_list()
- Module account_best will be loaded before account_extra
- Multiple addons_path
- Manual module deletion from odoo module list followed by a module list update
- Manual module installation from UI whereas the server is already started with loaded modules
- Add a loading_priority manifest key:
- default value is 0 if not set, could be positive (load before) or negative (load after)
- add an ORDER BY loading_priority, name
in all SQL query of the loading.py
- Add a soft_depends manifest key:
- a list of modules that we depends on, only if they exists and are installed
_______________________________________________
Mailing-List:
https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe:
https://odoo-community.org/groups?unsubscribe
Reference
-
Module loading priority and inheritance
byDEC, Yann Papouin-
Re: Module loading priority and inheritance
by "Richard deMeester" <richard.demeester@willdooit.com> - 17/06/2022 14:41:33 - 5 -
Re: Module loading priority and inheritance
byTecnativa. S. L., Pedro M. Baeza -
Re: Module loading priority and inheritance
byTecnativa. S. L., Pedro M. Baeza