diff options
| author | Xavier Morel <xmo@odoo.com> | 2015-10-07 14:21:07 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2015-10-07 15:10:36 +0200 |
| commit | 9b83dd5894fda3b8fb6a81bd20dd8ea8d6a5b1a4 (patch) | |
| tree | bfdc5e11d17f5295b2f56c82b6c9a91b69ecaa0e /addons/gamification/tests | |
| parent | 72dee6d52368ae53de793bf42c63f7a7b93fd909 (diff) | |
[ADD] Import hook to translate odoo imports
Allows importing the core ``openerp`` as ``odoo`` (e.g. ``from
odoo.tools import cache``) and importing modules as
e.g. ``odoo.addons.purchase`` **from modules**. From the openerp core,
imports *must* remain to ``openerp``, as those run before import hooks
can be installed.
* AddonsHook allows Odoo imports to be imported as both odoo.addons.* or
openerp.addons.* and will load addons to both names simultanously
* OdooHook makes the Odoo core accessible as odoo as well as openerp
Diffstat (limited to 'addons/gamification/tests')
0 files changed, 0 insertions, 0 deletions
