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:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user