Add python 3 support

This commit is contained in:
jmartin 2016-03-29 12:00:20 +02:00
parent 8954b4df4c
commit b90af17537
3 changed files with 3 additions and 3 deletions

2
api.py
View File

@ -14,10 +14,10 @@ except ImportError:
raise Exception(message)
__all__ = ['CarrierApi']
__metaclass__ = PoolMeta
class CarrierApi:
__metaclass__ = PoolMeta
__name__ = 'carrier.api'
@classmethod

View File

@ -7,10 +7,10 @@ from trytond.transaction import Transaction
from base64 import decodestring
__all__ = ['CarrierManifest']
__metaclass__ = PoolMeta
class CarrierManifest:
__metaclass__ = PoolMeta
__name__ = 'carrier.manifest'
def get_manifest_seurvalencia(self, api, from_date, to_date):

View File

@ -9,12 +9,12 @@ import logging
import tempfile
__all__ = ['ShipmentOut']
__metaclass__ = PoolMeta
logger = logging.getLogger(__name__)
class ShipmentOut:
__metaclass__ = PoolMeta
__name__ = 'stock.shipment.out'
@classmethod