mirror of
https://github.com/NaN-tic/trytond-party_country.git
synced 2023-12-14 08:32:51 +01:00
21 lines
552 B
Python
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
|
||
|
|