Add python 3 support

This commit is contained in:
jmartin 2016-03-29 12:00:33 +02:00
parent a0d2042454
commit ca88fcc069
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,6 @@ from trytond.transaction import Transaction
from trytond.config import config as config_
__all__ = ['Template', 'Product']
__metaclass__ = PoolMeta
STATES = {
'readonly': ~Eval('active', True),
@ -18,6 +17,7 @@ DIGITS = config_.getint('product', 'price_decimal', default=4)
class Template:
__metaclass__ = PoolMeta
__name__ = 'product.template'
special_price = fields.Property(fields.Numeric('Special Price',
states=STATES, digits=(16, DIGITS), depends=DEPENDS))
@ -26,6 +26,7 @@ class Template:
class Product:
__metaclass__ = PoolMeta
__name__ = 'product.product'
@classmethod

View File

@ -6,10 +6,10 @@ from trytond.model import fields
from trytond.pyson import Eval
__all__ = ['SaleShop']
__metaclass__ = PoolMeta
class SaleShop:
__metaclass__ = PoolMeta
__name__ = 'sale.shop'
special_price = fields.Boolean('Apply Special Price')