Skip to content
Snippets Groups Projects
Commit 47a1ae58 authored by Julien Castiaux's avatar Julien Castiaux
Browse files

[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: default avatarRaphael Collet (rco) <rco@openerp.com>
Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
parent 4cff27d6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment