Files
tryton/__init__.py
T
Cédric Krier 8c2e1db33d 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
2020-07-04 23:38:22 +02:00

15 lines
409 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
def register():
# Prevent to import backend when importing scripts
from . import country
Pool.register(
country.Country,
country.Subdivision,
country.Zip,
module='country', type_='model')