From 7940348bfa794ded629c0dad7b10329d2191a447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 20 Mar 2018 17:28:21 +0100 Subject: [PATCH] Add depends on Pool.register issue7178 review37051002 --- __init__.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 4de7339c91..f1fbca4dd4 100644 --- a/__init__.py +++ b/__init__.py @@ -2,15 +2,18 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from account import * -from party import * +from . import account +from . import party def register(): Pool.register( - Configuration, - ConfigurationDefaultCreditLimitAmount, - Level, - Party, - PartyCreditLimitAmount, + account.Configuration, + account.ConfigurationDefaultCreditLimitAmount, + party.Party, + party.PartyCreditLimitAmount, module='account_credit_limit', type_='model') + Pool.register( + account.Level, + module='account_credit_limit', type_='model', + depends=['account_dunning'])