mirror of
https://github.com/NaN-tic/trytond-country_zip.git
synced 2023-12-14 07:42:54 +01:00
24 lines
860 B
Python
24 lines
860 B
Python
# This file is part country_zip module for Tryton. The COPYRIGHT file at the
|
|
# top level of this repository contains the full copyright notices and license
|
|
# terms.
|
|
from trytond.model import ModelSQL, fields
|
|
from trytond.model import ValueMixin
|
|
from trytond.pool import PoolMeta
|
|
from trytond.modules.party.configuration import _ConfigurationValue
|
|
|
|
__all__ = ['Configuration', 'ConfigurationCountry']
|
|
|
|
default_country = fields.Many2One('country.country', 'Default Country')
|
|
|
|
|
|
class Configuration(metaclass=PoolMeta):
|
|
__name__ = 'party.configuration'
|
|
default_country = fields.MultiValue(default_country)
|
|
|
|
|
|
class ConfigurationCountry(_ConfigurationValue, ModelSQL, ValueMixin):
|
|
'Party Configuration Country'
|
|
__name__ = 'party.configuration.default_country'
|
|
default_country = default_country
|
|
_configuration_value_field = 'default_country'
|