Migrate to py3
This commit is contained in:
parent
f3c15f52bf
commit
55b7c59af1
|
@ -7,8 +7,7 @@ from trytond.pool import Pool, PoolMeta
|
||||||
__all__ = ['Address']
|
__all__ = ['Address']
|
||||||
|
|
||||||
|
|
||||||
class Address:
|
class Address(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'party.address'
|
__name__ = 'party.address'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -11,8 +11,7 @@ __all__ = ['Configuration', 'ConfigurationCountry']
|
||||||
default_country = fields.Many2One('country.country', 'Default Country')
|
default_country = fields.Many2One('country.country', 'Default Country')
|
||||||
|
|
||||||
|
|
||||||
class Configuration:
|
class Configuration(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'party.configuration'
|
__name__ = 'party.configuration'
|
||||||
default_country = fields.MultiValue(default_country)
|
default_country = fields.MultiValue(default_country)
|
||||||
|
|
||||||
|
|
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
|
|
||||||
|
|
||||||
MODULE = 'country_zip'
|
MODULE = 'country_zip'
|
||||||
PREFIX = 'trytonspain'
|
PREFIX = 'trytonspain'
|
||||||
|
|
Loading…
Reference in New Issue