Add python 3 support

This commit is contained in:
jmartin 2016-03-29 12:00:41 +02:00
parent a2ee2e2620
commit 05d2a921f7
2 changed files with 2 additions and 2 deletions

View file

@ -5,10 +5,10 @@ from trytond.pool import Pool, PoolMeta
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'
@classmethod @classmethod

View file

@ -6,10 +6,10 @@ from trytond.model import fields
from trytond.pyson import Eval from trytond.pyson import Eval
__all__ = ['SaleShop'] __all__ = ['SaleShop']
__metaclass__ = PoolMeta
class SaleShop: class SaleShop:
__metaclass__ = PoolMeta
__name__ = 'sale.shop' __name__ = 'sale.shop'
enough_stock = fields.Boolean('Enough Stock', enough_stock = fields.Boolean('Enough Stock',
help='Check enough stock when convert a sale to quotation') help='Check enough stock when convert a sale to quotation')