Migrate to py3

This commit is contained in:
Raimon Esteve 2018-09-15 18:14:45 +02:00
parent a2e3687039
commit 89054a9970
3 changed files with 5 additions and 9 deletions

View File

@ -2,9 +2,9 @@
#The COPYRIGHT file at the top level of this repository contains #The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. #the full copyright notices and license terms.
from trytond.pool import Pool from trytond.pool import Pool
from .shipment import * from . import shipment
def register(): def register():
Pool.register( Pool.register(
ShipmentOutPacked, shipment.ShipmentOutPacked,
module='stock_picking_kit', type_='wizard') module='stock_picking_kit', type_='wizard')

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
MODULE2PREFIX = {} MODULE2PREFIX = {}

View File

@ -1,13 +1,12 @@
#This file is part stock_picking_kit module for Tryton. #This file is part stock_picking_kit module for Tryton.
#The COPYRIGHT file at the top level of this repository contains #The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. #the full copyright notices and license terms.
from trytond.pool import Pool, PoolMeta from trytond.pool import Pool, PoolMeta
__all__ = [ 'ShipmentOutPacked'] __all__ = [ 'ShipmentOutPacked']
class ShipmentOutPacked: class ShipmentOutPacked(metaclass=PoolMeta):
__metaclass__ = PoolMeta
__name__ = 'stock.shipment.out.packed' __name__ = 'stock.shipment.out.packed'
def transition_packed(self): def transition_packed(self):