From 8c2e1db33df14aa2f55ce95977b4a13e4ee382d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 4 Jul 2020 23:38:22 +0200 Subject: [PATCH] Prevent import backend when importing module scripts The configuration is loaded by the script, we must delay the import of backend until then. issue9446 review321741002 --- __init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 8eac12750e..c03f0dc05e 100644 --- a/__init__.py +++ b/__init__.py @@ -2,10 +2,11 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from . import country def register(): + # Prevent to import backend when importing scripts + from . import country Pool.register( country.Country, country.Subdivision,