Add python 3 support

This commit is contained in:
jmartin 2016-03-29 12:00:20 +02:00
parent f1eb630c3f
commit 6341d4d0ef
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,6 @@
from trytond.model import ModelView, ModelSQL, fields from trytond.model import ModelView, ModelSQL, fields
from trytond.pool import Pool, PoolMeta from trytond.pool import Pool, PoolMeta
__metaclass__ = PoolMeta
__all__ = ['CarrierZip', 'Carrier'] __all__ = ['CarrierZip', 'Carrier']
@ -38,6 +37,7 @@ class CarrierZip(ModelSQL, ModelView):
class Carrier: class Carrier:
__metaclass__ = PoolMeta
__name__ = 'carrier' __name__ = 'carrier'
zips = fields.One2Many('carrier.zip', 'carrier', 'Carrier Zips') zips = fields.One2Many('carrier.zip', 'carrier', 'Carrier Zips')

View file

@ -7,10 +7,10 @@ from trytond.pyson import Eval
from trytond.transaction import Transaction from trytond.transaction import Transaction
__all__ = ['Sale'] __all__ = ['Sale']
__metaclass__ = PoolMeta
class Sale: class Sale:
__metaclass__ = PoolMeta
__name__ = 'sale.sale' __name__ = 'sale.sale'
carrier_domain = fields.Function(fields.One2Many('carrier', None, carrier_domain = fields.Function(fields.One2Many('carrier', None,
'Carrier Domain', depends=['shipment_address', 'party']), 'Carrier Domain', depends=['shipment_address', 'party']),