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
This commit is contained in:
Cédric Krier
2020-07-04 23:38:22 +02:00
parent f98c9a974f
commit 8c2e1db33d
+2 -1
View File
@@ -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,