Files
tryton/__init__.py
T
Cédric Krier 8ff10f6f08 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

14 lines
394 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 currency
Pool.register(
currency.Currency,
currency.CurrencyRate,
module='currency', type_='model')