trytond-party_country/address.py

21 lines
552 B
Python

#This file is part party_country 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 fields
from trytond.pool import Pool, PoolMeta
__all__ = ['Address']
__metaclass__ = PoolMeta
class Address:
__name__ = 'party.address'
@staticmethod
def default_country():
Configuration = Pool().get('party.configuration')
config = Configuration(1)
if config.default_country:
return config.default_country.id