diff --git a/__init__.py b/__init__.py index 38e5840..e2ba4ed 100644 --- a/__init__.py +++ b/__init__.py @@ -1,10 +1,10 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from trytond.pool import Pool -from .product import * +from . import product def register(): Pool.register( - Template, - Product, + product.Template, + product.Product, module='product_qty', type_='model') diff --git a/setup.py b/setup.py index 6c33108..64a5b37 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,7 @@ from setuptools import setup import re import os import io -try: - from configparser import ConfigParser -except ImportError: - from configparser import ConfigParser +from configparser import ConfigParser MODULE = 'product_qty' PREFIX = 'trytonzz'