From 8704dc13186b17d402c564e08b8a69e1e4a5b382 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Sat, 15 Sep 2018 18:11:28 +0200 Subject: [PATCH] Migrate to py3 --- __init__.py | 6 +++--- setup.py | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) 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'