[FIX] core: always provide tools.osutil

Turns out almost no user of odoo.tools.osutil actually imports
it. Following odoo/odoo#39573
(355e360973) removing what were
apparently the only two users of the submodule properly importing it,
other calls to osutil features now blow up, which went unnoticed as
these calls are lazy (so don't prevent starting the server) and only
happen for very specific operations.

The smallest change there is to simply re-enable the old behaviour by
explicitly importing osutil from tools.__init__.

closes odoo/odoo#39705

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
Xavier Morel
2019-11-04 07:40:20 +00:00
parent a60447807d
commit 34e7e53ea9
+2 -1
View File
@@ -4,6 +4,7 @@
from . import pycompat
from . import win32
from . import appdirs
from . import osutil
from . import pdf
from .config import config
from .misc import *
@@ -17,4 +18,4 @@ from .debugger import *
from .xml_utils import *
from .date_utils import *
from .convert import *
from .template_inheritance import *
from .template_inheritance import *