Add python 3 support

This commit is contained in:
jmartin 2016-03-29 13:09:22 +02:00
parent fc267f36b4
commit ec5693c1ea

View file

@ -8,10 +8,10 @@ from trytond.pyson import And, Bool, Equal, Eval, If, Not
from trytond.transaction import Transaction
__all__ = ['Template', 'Lot', 'Location', 'Move']
__metaclass__ = PoolMeta
class Template:
__metaclass__ = PoolMeta
__name__ = 'product.template'
life_time = fields.Integer('Life Time',
@ -28,6 +28,7 @@ class Template:
class Lot:
__metaclass__ = PoolMeta
__name__ = 'stock.lot'
life_date = fields.Date('End of Life Date',
@ -122,6 +123,7 @@ class Lot:
class Location:
__metaclass__ = PoolMeta
__name__ = 'stock.location'
expired = fields.Boolean('Expired Products\' Location',
@ -160,6 +162,7 @@ class Location:
class Move:
__metaclass__ = PoolMeta
__name__ = 'stock.move'
to_location_allow_expired = fields.Function(