[REV] module: bring back openerp import hook
Use `warnings.warn` to log a warning entry on usage of deprecated import hook instead of `logging.warning`. The `warnings` can be more easily configured to show/hide class of warnings or to limit warning emission, plus it is possible to log a single stack entry whereas logging can just log the entire call stack. Bring back the various openerp import hooks by reverting 9e1f13bac12 closes odoo/odoo#50604 Task: 2234749 X-original-commit: 5840202802c2ff6ca1ca8fd6f3892900481db5da Signed-off-by:Raphael Collet (rco) <rco@openerp.com> Signed-off-by:
Christophe Simonis <chs@odoo.com>
Loading
Please register or sign in to comment