Migrate to py3
This commit is contained in:
parent
ff7d66435b
commit
56ed713a03
|
@ -9,8 +9,7 @@ from trytond.modules.product_esale.tools import slugify
|
||||||
__all__ = ['ProductOneClickView', 'ProductOneClick']
|
__all__ = ['ProductOneClickView', 'ProductOneClick']
|
||||||
|
|
||||||
|
|
||||||
class ProductOneClickView:
|
class ProductOneClickView(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'product.oneclick.view'
|
__name__ = 'product.oneclick.view'
|
||||||
esale_available = fields.Boolean('Available eSale',
|
esale_available = fields.Boolean('Available eSale',
|
||||||
help='Product are available in e-commerce.')
|
help='Product are available in e-commerce.')
|
||||||
|
@ -94,8 +93,7 @@ class ProductOneClickView:
|
||||||
})]
|
})]
|
||||||
|
|
||||||
|
|
||||||
class ProductOneClick:
|
class ProductOneClick(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'product.oneclick'
|
__name__ = 'product.oneclick'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -7,10 +7,7 @@ from setuptools import setup
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
try:
|
from configparser import ConfigParser
|
||||||
from configparser import ConfigParser
|
|
||||||
except ImportError:
|
|
||||||
from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
MODULE2PREFIX = {}
|
MODULE2PREFIX = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue