Migrate to py3

This commit is contained in:
Raimon Esteve 2018-09-15 18:11:28 +02:00
parent 2263e63b96
commit 8704dc1318
2 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,10 @@
# The COPYRIGHT file at the top level of this repository contains the full # The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms. # copyright notices and license terms.
from trytond.pool import Pool from trytond.pool import Pool
from .product import * from . import product
def register(): def register():
Pool.register( Pool.register(
Template, product.Template,
Product, product.Product,
module='product_qty', type_='model') module='product_qty', type_='model')

View File

@ -7,10 +7,7 @@ from setuptools import setup
import re import re
import os import os
import io import io
try: from configparser import ConfigParser
from configparser import ConfigParser
except ImportError:
from configparser import ConfigParser
MODULE = 'product_qty' MODULE = 'product_qty'
PREFIX = 'trytonzz' PREFIX = 'trytonzz'