Skip to content

Defer import of trytond.backend.

Hartmut Goebel requested to merge htgoebel/nereid:defer-backend into develop

When not using TRYTOND_DATABASE__URI but the respective entry in trytond.conf for configuring, nereid tries to open a sqlite database. This is caused by trytond.backend setting up the database backend as soon as it gets imported. And nereid imports it at the very top of nereid.application — far before configuring trytond.

This commit solves this issue by deferring the import of trytond.backend.

Merge request reports