Before this commit, the template of some dynamic classes (usually as WOWL to legacyAdapters) were registered at each definition of the class which is potentially at every doAction/switchView After this commit, they are all registered only once, as early as possible. closes odoo/odoo#72476 Related: odoo/enterprise#19199 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>